summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize
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
commitdc8e551d84b8f7f6081a7a97b3b6ffdf935404e7 (patch)
tree53d7565d0f7adfe74e188afc202ed1dc5f98f087 /llvm/lib/Transforms/Vectorize
parent299cf511c48614726d7622ad416c568c579e14f2 (diff)
downloadbcm5719-llvm-dc8e551d84b8f7f6081a7a97b3b6ffdf935404e7.tar.gz
bcm5719-llvm-dc8e551d84b8f7f6081a7a97b3b6ffdf935404e7.zip
fix -Wunused-variable warning in Release mode
llvm-svn: 207514
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 5dc4095fbb9..5f27079a96d 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud