summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/LoopUnroll.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-09-15 22:04:42 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-09-15 22:04:42 +0000
commit94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5 (patch)
treea11274bb86a14e22b860582986b742ff4e07e948 /lib/Transforms/Utils/LoopUnroll.cpp
parent766f25306af343fb2784350cb4d8cd9ca180f0d3 (diff)
downloadllvm-94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5.tar.gz
llvm-94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5.tar.bz2
llvm-94ee55d4b39d6506cf4e0f4e4b1c0b7fbbfeaed5.tar.xz
Replace some unnecessary vector copies with references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopUnroll.cpp')
-rw-r--r--lib/Transforms/Utils/LoopUnroll.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LoopUnroll.cpp b/lib/Transforms/Utils/LoopUnroll.cpp
index cb581b3d13..0b679fe7e6 100644
--- a/lib/Transforms/Utils/LoopUnroll.cpp
+++ b/lib/Transforms/Utils/LoopUnroll.cpp
@@ -239,8 +239,6 @@ bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
DEBUG(dbgs() << "!\n");
}
- std::vector<BasicBlock*> LoopBlocks = L->getBlocks();
-
bool ContinueOnTrue = L->contains(BI->getSuccessor(0));
BasicBlock *LoopExit = BI->getSuccessor(ContinueOnTrue);