[llvm] r207514 - fix -Wunused-variable warning in Release mode

Kostya Serebryany kcc at google.com
Tue Apr 29 02:33:02 PDT 2014


Author: kcc
Date: Tue Apr 29 04:33:02 2014
New Revision: 207514

URL: http://llvm.org/viewvc/llvm-project?rev=207514&view=rev
Log:
fix -Wunused-variable warning in Release mode

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=207514&r1=207513&r2=207514&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Tue Apr 29 04:33:02 2014
@@ -5122,6 +5122,7 @@ LoopVectorizationCostModel::selectVector
   DEBUG(if (ForceVectorization && Width > 1 && Cost >= ScalarCost) dbgs()
         << "LV: Vectorization seems to be not beneficial, "
         << "but was forced by a user.\n");
+  (void)ScalarCost;
   DEBUG(dbgs() << "LV: Selecting VF: "<< Width << ".\n");
   Factor.Width = Width;
   Factor.Cost = Width * Cost;





More information about the llvm-commits mailing list