LLVM: lib/CodeGen/RemoveRedundantDebugValues.cpp File Reference (original) (raw)

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)

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

Definition in file RemoveRedundantDebugValues.cpp.

DEBUG_TYPE

#define DEBUG_TYPE "removeredundantdebugvalues"

INITIALIZE_PASS()

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

reduceDbgValsBackwardScan()

Definition at line 159 of file RemoveRedundantDebugValues.cpp.

References llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::clear(), llvm::dbgs(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::erase(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), LLVM_DEBUG, MBB, MI, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::reverse().

reduceDbgValsForwardScan()

Definition at line 85 of file RemoveRedundantDebugValues.cpp.

References llvm::dbgs(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), LLVM_DEBUG, MBB, MI, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and TRI.

STATISTIC() [1/2]

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

STATISTIC() [2/2]

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