LLVM 22.0.0git
RemoveRedundantDebugValues.cpp File Reference

The RemoveRedundantDebugValues pass removes redundant DBG_VALUEs that appear in MIR after the register allocator. More...

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "removeredundantdebugvalues"

Functions

 STATISTIC (NumRemovedBackward, "Number of DBG_VALUEs removed (backward scan)")
 STATISTIC (NumRemovedForward, "Number of DBG_VALUEs removed (forward scan)")
 INITIALIZE_PASS (RemoveRedundantDebugValuesLegacy, DEBUG_TYPE, "Remove Redundant DEBUG_VALUE analysis", false, false) RemoveRedundantDebugValuesLegacy
 Default construct and initialize the pass.
static bool reduceDbgValsForwardScan (MachineBasicBlock &MBB)
static bool reduceDbgValsBackwardScan (MachineBasicBlock &MBB)

Detailed Description

The RemoveRedundantDebugValues pass removes redundant DBG_VALUEs that appear in MIR after the register allocator.

Definition in file RemoveRedundantDebugValues.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "removeredundantdebugvalues"

Definition at line 28 of file RemoveRedundantDebugValues.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( RemoveRedundantDebugValuesLegacy ,
DEBUG_TYPE ,
"Remove Redundant DEBUG_VALUE analysis" ,
false ,
false  )

Default construct and initialize the pass.

Definition at line 65 of file RemoveRedundantDebugValues.cpp.

References DEBUG_TYPE, llvm::PassRegistry::getPassRegistry(), and llvm::initializeRemoveRedundantDebugValuesLegacyPass().

◆ reduceDbgValsBackwardScan()

◆ reduceDbgValsForwardScan()

◆ STATISTIC() [1/2]

STATISTIC ( NumRemovedBackward ,
"Number of DBG_VALUEs removed (backward scan)"  )

◆ STATISTIC() [2/2]

STATISTIC ( NumRemovedForward ,
"Number of DBG_VALUEs removed (forward scan)"  )