[llvm] r276491 - [LoopDataPrefetch] Fix unused variable in release build
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 16:08:10 PDT 2016
Author: anemet
Date: Fri Jul 22 18:08:10 2016
New Revision: 276491
URL: http://llvm.org/viewvc/llvm-project?rev=276491&view=rev
Log:
[LoopDataPrefetch] Fix unused variable in release build
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopDataPrefetch.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopDataPrefetch.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopDataPrefetch.cpp?rev=276491&r1=276490&r2=276491&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopDataPrefetch.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopDataPrefetch.cpp Fri Jul 22 18:08:10 2016
@@ -214,10 +214,9 @@ bool LoopDataPrefetch::runOnLoop(Loop *L
if (ItersAhead > getMaxPrefetchIterationsAhead())
return MadeChange;
- Function *F = L->getHeader()->getParent();
DEBUG(dbgs() << "Prefetching " << ItersAhead
<< " iterations ahead (loop size: " << LoopSize << ") in "
- << F->getName() << ": " << *L);
+ << L->getHeader()->getParent()->getName() << ": " << *L);
SmallVector<std::pair<Instruction *, const SCEVAddRecExpr *>, 16> PrefLoads;
for (Loop::block_iterator I = L->block_begin(), IE = L->block_end();
More information about the llvm-commits
mailing list