[llvm-commits] [llvm] r169195 - /llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

NAKAMURA Takumi geek4civic at gmail.com
Mon Dec 3 16:49:34 PST 2012


Author: chapuni
Date: Mon Dec  3 18:49:34 2012
New Revision: 169195

URL: http://llvm.org/viewvc/llvm-project?rev=169195&view=rev
Log:
LoopVectorize.cpp: Suppress a warning. [-Wunused-variable]

Modified:
    llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp

Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=169195&r1=169194&r2=169195&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Mon Dec  3 18:49:34 2012
@@ -1495,9 +1495,9 @@
   }
 
   // We need to have a loop header.
-  BasicBlock *Header = TheLoop->getHeader();
   BasicBlock *Latch = TheLoop->getLoopLatch();
-  DEBUG(dbgs() << "LV: Found a loop: " << Header->getName() << "\n");
+  DEBUG(dbgs() << "LV: Found a loop: " <<
+        TheLoop->getHeader()->getName() << "\n");
 
   // ScalarEvolution needs to be able to find the exit count.
   const SCEV *ExitCount = SE->getExitCount(TheLoop, Latch);





More information about the llvm-commits mailing list