From dc8e551d84b8f7f6081a7a97b3b6ffdf935404e7 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Tue, 29 Apr 2014 09:33:02 +0000 Subject: fix -Wunused-variable warning in Release mode llvm-svn: 207514 --- llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib') 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; -- cgit v1.2.3