mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-23 20:34:58 +00:00
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. llvm-svn: 64625
This commit is contained in:
parent
b36bd824fe
commit
47a6dc9ad1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user