[llvm] [VPlan] Add initial loop-invariant code motion transform. (PR #107894)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 13 11:10:43 PDT 2024
================
@@ -2382,7 +2382,8 @@ void InnerLoopVectorizer::scalarizeInstruction(const Instruction *Instr,
AC->registerAssumption(II);
// End if-block.
- bool IfPredicateInstr = RepRecipe->getParent()->getParent()->isReplicator();
+ VPRegionBlock *Parent = RepRecipe->getParent()->getParent();
+ bool IfPredicateInstr = Parent ? Parent->isReplicator() : false;
----------------
artagnon wrote:
Is this change related to the main LICM routine that this patch adds?
https://github.com/llvm/llvm-project/pull/107894
More information about the llvm-commits
mailing list