[llvm] f0e848e - Silence unused variable warning

Tres Popp via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 28 06:46:24 PDT 2021


Author: Tres Popp
Date: 2021-04-28T15:46:09+02:00
New Revision: f0e848e63d99d9c13c7627dab013c05227d8b8f5

URL: https://github.com/llvm/llvm-project/commit/f0e848e63d99d9c13c7627dab013c05227d8b8f5
DIFF: https://github.com/llvm/llvm-project/commit/f0e848e63d99d9c13c7627dab013c05227d8b8f5.diff

LOG: Silence unused variable warning

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index f25af23c86c2..2878101c0f76 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -7400,6 +7400,7 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I, ElementCount VF,
              return !Scalarized->second.count(UI);
            });
   };
+  (void) hasSingleCopyAfterVectorization;
 
   if (isScalarAfterVectorization(I, VF)) {
     // With the exception of GEPs and PHIs, after scalarization there should


        


More information about the llvm-commits mailing list