[llvm] 46eded7 - [LoopVectorize] Replace dyn_cast with isa to suppress an unused variable warning. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 19 14:48:27 PDT 2023


Author: Craig Topper
Date: 2023-08-19T14:41:00-07:00
New Revision: 46eded75cd238dc3747ca1667427b2f70493b547

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

LOG: [LoopVectorize] Replace dyn_cast with isa to suppress an unused variable warning. NFC

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 04d848454e15b1..df54c51d2531b4 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -9088,7 +9088,7 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
         VecOp = FMulRecipe;
       } else {
         if (RecurrenceDescriptor::isMinMaxRecurrenceKind(Kind)) {
-          if (auto *Cmp = dyn_cast<VPWidenRecipe>(CurrentLink)) {
+          if (isa<VPWidenRecipe>(CurrentLink)) {
             assert(isa<CmpInst>(CurrentLinkI) &&
                    "need to have the compare of the select");
             continue;


        


More information about the llvm-commits mailing list