summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2014-04-29 09:33:02 +0000
committerKostya Serebryany <kcc@google.com>2014-04-29 09:33:02 +0000
commit0f99bc060611d6de502963fcbc668f1c60160a44 (patch)
treee3ce61d9ac2f16fabcbab1277a5e259e9600b31a /lib/Transforms
parente3e08acd09b1fa47b6da07eb56a22415d70f468e (diff)
downloadllvm-0f99bc060611d6de502963fcbc668f1c60160a44.tar.gz
llvm-0f99bc060611d6de502963fcbc668f1c60160a44.tar.bz2
llvm-0f99bc060611d6de502963fcbc668f1c60160a44.tar.xz
fix -Wunused-variable warning in Release mode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 5dc4095fbb..5f27079a96 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -5122,6 +5122,7 @@ LoopVectorizationCostModel::selectVectorizationFactor(bool OptForSize,
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;