Lines Matching refs:Loop
1 //===- LoopInstSimplify.cpp - Loop Instruction Simplification Pass --------===//
10 // This pass performs lightweight instruction simplification on loop bodies.
30 #define DEBUG_TYPE "loop-instsimplify"
42 bool runOnLoop(Loop*, LPPassManager&) override;
58 INITIALIZE_PASS_BEGIN(LoopInstSimplify, "loop-instsimplify",
65 INITIALIZE_PASS_END(LoopInstSimplify, "loop-instsimplify",
72 bool LoopInstSimplify::runOnLoop(Loop *L, LPPassManager &LPM) {
117 // The first time through the loop ToSimplify is empty and we try to
127 // Mark all uses for resimplification next time round the loop.
150 // Add all successors to the worklist, except for loop exit blocks and the
153 // edges leading back to the original loop.
160 const Loop *SuccLoop = LI->getLoopFor(SuccBB);
186 // Place the list of instructions to simplify on the next loop iteration