From 9332625c96fc2b0e49791ac3ff579d82b86b1072 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Tue, 8 Oct 2019 07:39:50 +0000 Subject: [PATCH] [LoopVectorize] Fix non-debug builds after rL374017 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374021 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/LoopVectorize.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index 11e1cd003b4..18cc61f7a2b 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -5442,17 +5442,19 @@ LoopVectorizationCostModel::calculateRegisterUsage(ArrayRef VFs) { LLVM_DEBUG(dbgs() << "LV(REG): VF = " << VFs[i] << '\n'); LLVM_DEBUG(dbgs() << "LV(REG): Found max usage: " << MaxUsages[i].size() << " item\n"); - for (const auto& pair : MaxUsages[i]) { + for (const auto& Pair : MaxUsages[i]) { + (void)Pair; LLVM_DEBUG(dbgs() << "LV(REG): RegisterClass: " - << TTI.getRegisterClassName(pair.first) - << ", " << pair.second << " registers \n"); + << TTI.getRegisterClassName(Pair.first) + << ", " << Pair.second << " registers \n"); } LLVM_DEBUG(dbgs() << "LV(REG): Found invariant usage: " << Invariant.size() << " item\n"); - for (const auto& pair : Invariant) { + for (const auto& Pair : Invariant) { + (void)Pair; LLVM_DEBUG(dbgs() << "LV(REG): RegisterClass: " - << TTI.getRegisterClassName(pair.first) - << ", " << pair.second << " registers \n"); + << TTI.getRegisterClassName(Pair.first) + << ", " << Pair.second << " registers \n"); } RU.LoopInvariantRegs = Invariant; -- 2.40.0