Skip to content

Commit

Permalink
[LV] Remove unneeded cast to Operator [NFC]
Browse files Browse the repository at this point in the history
  • Loading branch information
preames committed Nov 30, 2021
1 parent 455a2b8 commit c41b318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit c41b318

Please sign in to comment.