Go to the source code of this file.
◆ DEBUG_TYPE
#define DEBUG_TYPE "bdce" |
◆ bitTrackingDCE()
Definition at line 96 of file BDCE.cpp.
References Changed, clearAssumptionsOfUsers(), llvm::APInt::countl_zero(), llvm::dbgs(), llvm::dyn_cast(), F, I, instructions, llvm::APInt::intersects(), llvm::isa(), llvm::APInt::isAllOnes(), llvm::APInt::isSubsetOf(), LLVM_DEBUG, llvm::PatternMatch::m_APInt(), llvm::PatternMatch::match(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::reverse(), llvm::salvageDebugInfo(), and llvm::wouldInstructionBeTriviallyDead().
Referenced by llvm::BDCEPass::run().
◆ clearAssumptionsOfUsers()
If an instruction is trivialized (dead), then the chain of users of that instruction may need to be cleared of assumptions that can no longer be guaranteed correct.
Definition at line 44 of file BDCE.cpp.
References assert(), llvm::cast(), llvm::Instruction::dropPoisonGeneratingAnnotations(), llvm::SmallVectorTemplateCommon< T, typename >::empty(), I, llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::SmallVectorImpl< T >::pop_back_val(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::Value::users().
Referenced by bitTrackingDCE().
◆ STATISTIC() [1/3]
STATISTIC |
( |
NumRemoved | , |
|
|
"Number of instructions removed (unused)" | ) |
◆ STATISTIC() [2/3]
STATISTIC |
( |
NumSExt2ZExt | , |
|
|
"Number of sign extension instructions converted to zero extension" | ) |
◆ STATISTIC() [3/3]
STATISTIC |
( |
NumSimplified | , |
|
|
"Number of instructions trivialized (dead bits)" | ) |