summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2017-04-26 14:31:05 +0000
committerHaojian Wu <hokein@google.com>2017-04-26 14:31:05 +0000
commite43db0a834de274ad8e12ed05037289ea0a3dc99 (patch)
tree1d801c56507cb3a515599278b81b9667c04ca7c8 /llvm/lib/Transforms
parentccaddfb494b1ae0f664628d0281bc8c36d489c91 (diff)
downloadbcm5719-llvm-e43db0a834de274ad8e12ed05037289ea0a3dc99.tar.gz
bcm5719-llvm-e43db0a834de274ad8e12ed05037289ea0a3dc99.zip
Fix unused-variable warning caused by r301407.
llvm-svn: 301411
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopRotation.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopRotation.cpp b/llvm/lib/Transforms/Scalar/LoopRotation.cpp
index 466a55dc967..8ce96cf1b7a 100644
--- a/llvm/lib/Transforms/Scalar/LoopRotation.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopRotation.cpp
@@ -312,8 +312,6 @@ bool LoopRotate::rotateLoop(Loop *L, bool SimplifiedLatch) {
for (; PHINode *PN = dyn_cast<PHINode>(I); ++I)
ValueMap[PN] = PN->getIncomingValueForBlock(OrigPreheader);
- const DataLayout &DL = L->getHeader()->getModule()->getDataLayout();
-
// For the rest of the instructions, either hoist to the OrigPreheader if
// possible or create a clone in the OldPreHeader if not.
TerminatorInst *LoopEntryBranch = OrigPreheader->getTerminator();
OpenPOWER on IntegriCloud