[llvm] [LV] Reuse VPReplicateRecipe to handle scalar stores in exit block. (PR #106342)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 02:44:45 PDT 2024
================
@@ -2388,8 +2388,8 @@ void InnerLoopVectorizer::scalarizeInstruction(const Instruction *Instr,
AC->registerAssumption(II);
// End if-block.
- bool IfPredicateInstr = RepRecipe->getParent()->getParent()->isReplicator();
- if (IfPredicateInstr)
+ const VPRegionBlock *Region = RepRecipe->getParent()->getParent();
+ if (Region && Region->isReplicator())
----------------
Mel-Chen wrote:
da4abe29dd117f4d14ce5f4a0d9141d57adbf001
https://github.com/llvm/llvm-project/pull/106342
More information about the llvm-commits
mailing list