[LoopDataPrefetch] Fix unused variable in release build
authorAdam Nemet <anemet@apple.com>
Fri, 22 Jul 2016 23:08:10 +0000 (23:08 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 22 Jul 2016 23:08:10 +0000 (23:08 +0000)
llvm-svn: 276491

llvm/lib/Transforms/Scalar/LoopDataPrefetch.cpp

index fb14b97..0b0e794 100644 (file)
@@ -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();