From 70d0ca999c7a2ef07ea39d26d67b5df57e6e6496 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Tue, 9 Aug 2011 03:11:29 +0000 Subject: [PATCH] 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 --- lib/Transforms/Utils/LoopUnroll.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/Transforms/Utils/LoopUnroll.cpp b/lib/Transforms/Utils/LoopUnroll.cpp index 5a40a095805..fa508d48261 100644 --- a/lib/Transforms/Utils/LoopUnroll.cpp +++ b/lib/Transforms/Utils/LoopUnroll.cpp @@ -217,12 +217,7 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount, ValueToValueMapTy LastValueMap; std::vector OrigPHINode; for (BasicBlock::iterator I = Header->begin(); isa(I); ++I) { - PHINode *PN = cast(I); - OrigPHINode.push_back(PN); - if (Instruction *I = - dyn_cast(PN->getIncomingValueForBlock(LatchBlock))) - if (L->contains(I)) - LastValueMap[I] = I; + OrigPHINode.push_back(cast(I)); } std::vector Headers; -- 2.34.1