[llvm] [VPlan] Add initial loop-invariant code motion transform. (PR #107894)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 20 01:57:36 PDT 2024
================
@@ -2378,7 +2378,8 @@ void InnerLoopVectorizer::scalarizeInstruction(const Instruction *Instr,
AC->registerAssumption(II);
// End if-block.
- bool IfPredicateInstr = RepRecipe->getParent()->getParent()->isReplicator();
+ VPRegionBlock *Parent = RepRecipe->getParent()->getParent();
----------------
fhahn wrote:
Perhaps we should introduce `getParentRegion` or `getRegion`, similar to `Instruction::getFunction`?
https://github.com/llvm/llvm-project/pull/107894
More information about the llvm-commits
mailing list