diff options
author | Dan Gohman <gohman@apple.com> | 2009-02-16 02:57:42 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-02-16 02:57:42 +0000 |
commit | ebcd4af3878449009e18fbcf77d449985e018877 (patch) | |
tree | 59d1c57028eb6555d7184729ca2032b15c1485d9 /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 74786c0f4360db7547f8a12980260b5b7a441627 (diff) |
Delete this long-commented-out code. The situation it seems to have
been written for is no longer relevant with the elimination of
signed and unsigned types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 92a501fda8..4e7d5c76a0 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -754,32 +754,6 @@ bool IndVarSimplify::runOnLoop(Loop *L, LPPassManager &LPM) { Changed = true; } -#if 0 - // Now replace all derived expressions in the loop body with simpler - // expressions. - for (LoopInfo::block_iterator I = L->block_begin(), E = L->block_end(); - I != E; ++I) { - BasicBlock *BB = *I; - if (LI->getLoopFor(BB) == L) { // Not in a subloop... - for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I) - if (I->getType()->isInteger() && // Is an integer instruction - !I->use_empty() && - !Rewriter.isInsertedInstruction(I)) { - SCEVHandle SH = SE->getSCEV(I); - Value *V = Rewriter.expandCodeFor(SH, I, I->getType()); - if (V != I) { - if (isa<Instruction>(V)) - V->takeName(I); - I->replaceAllUsesWith(V); - DeadInsts.insert(I); - ++NumRemoved; - Changed = true; - } - } - } - } -#endif - DeleteTriviallyDeadInstructions(DeadInsts); assert(L->isLCSSAForm()); return Changed; |