[llvm] c41b318 - [LV] Remove unneeded cast to Operator [NFC]

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 30 08:45:31 PST 2021


Author: Philip Reames
Date: 2021-11-30T08:45:13-08:00
New Revision: c41b318423c4dbf0a65f81e5e9a816c1710ba4f6

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

LOG: [LV] Remove unneeded cast to Operator [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 df6aac3466f9e..d74d14ff97853 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -1200,7 +1200,7 @@ void InnerLoopVectorizer::collectPoisonGeneratingRecipes(
       // load/store. Collect recipe if its underlying instruction has
       // poison-generating flags.
       Instruction *Instr = CurRec->getUnderlyingInstr();
-      if (Instr && cast<Operator>(Instr)->hasPoisonGeneratingFlags())
+      if (Instr && Instr->hasPoisonGeneratingFlags())
         State.MayGeneratePoisonRecipes.insert(CurRec);
 
       // Add new definitions to the worklist.


        


More information about the llvm-commits mailing list