LoopUnroll looks like it has some stale code. Remove it to prove my sanity and avoid further confusion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Andrew Trick 2011-08-09 03:11:29 +00:00
parent 2f613c5fff
commit 70d0ca999c

View File

@ -217,12 +217,7 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
ValueToValueMapTy LastValueMap;
std::vector<PHINode*> OrigPHINode;
for (BasicBlock::iterator I = Header->begin(); isa<PHINode>(I); ++I) {
PHINode *PN = cast<PHINode>(I);
OrigPHINode.push_back(PN);
if (Instruction *I =
dyn_cast<Instruction>(PN->getIncomingValueForBlock(LatchBlock)))
if (L->contains(I))
LastValueMap[I] = I;
OrigPHINode.push_back(cast<PHINode>(I));
}
std::vector<BasicBlock*> Headers;