Go to the source code of this file.
|
| STATISTIC (NumSimplified, "Number of redundant instructions simplified") |
|
static bool | simplifyLoopInst (Loop &L, DominatorTree &DT, LoopInfo &LI, AssumptionCache &AC, const TargetLibraryInfo &TLI, MemorySSAUpdater *MSSAU) |
|
| INITIALIZE_PASS_BEGIN (LoopInstSimplifyLegacyPass, "loop-instsimplify", "Simplify instructions in loops", false, false) INITIALIZE_PASS_END(LoopInstSimplifyLegacyPass |
|
◆ DEBUG_TYPE
#define DEBUG_TYPE "loop-instsimplify" |
◆ INITIALIZE_PASS_BEGIN()
INITIALIZE_PASS_BEGIN |
( |
LoopInstSimplifyLegacyPass |
, |
|
|
"loop-instsimplify" |
, |
|
|
"Simplify instructions in loops" |
, |
|
|
false |
, |
|
|
false |
|
|
) |
| |
◆ simplifyLoopInst()
Definition at line 47 of file LoopInstSimplify.cpp.
References assert(), llvm::SmallPtrSetImplBase::clear(), llvm::SmallVectorImpl< T >::clear(), llvm::SmallPtrSetImpl< PtrType >::count(), DL, llvm::SmallPtrSetImplBase::empty(), llvm::SmallVectorBase< Size_T >::empty(), llvm::MemorySSA::getMemoryAccess(), llvm::MemorySSAUpdater::getMemorySSA(), llvm::SimplifyQuery::getWithInstruction(), I, llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::isInstructionTriviallyDead(), llvm::DominatorTree::isReachableFromEntry(), llvm::make_early_inc_range(), llvm::LoopBlocksRPO::perform(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::RecursivelyDeleteTriviallyDeadInstructions(), llvm::LoopInfo::replacementPreservesLCSSAForm(), llvm::simplifyInstruction(), std::swap(), llvm::MemorySSA::verifyMemorySSA(), and llvm::VerifyMemorySSA.
Referenced by llvm::LoopInstSimplifyPass::run().
◆ STATISTIC()
STATISTIC |
( |
NumSimplified |
, |
|
|
"Number of redundant instructions simplified" |
|
|
) |
| |
◆ false
◆ instsimplify
◆ loops