]> granicus.if.org Git - llvm/commitdiff
[LoopVectorize] Fix non-debug builds after rL374017
authorKadir Cetinkaya <kadircet@google.com>
Tue, 8 Oct 2019 07:39:50 +0000 (07:39 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Tue, 8 Oct 2019 07:39:50 +0000 (07:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374021 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/LoopVectorize.cpp

index 11e1cd003b42688f39c5ba18ee0fdea015dcce20..18cc61f7a2b7937a737cf419ee23e1403e98704b 100644 (file)
@@ -5442,17 +5442,19 @@ LoopVectorizationCostModel::calculateRegisterUsage(ArrayRef<unsigned> 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;