[llvm] [VPlan] Create header phis once, after constructing VPlan0 (NFC). (PR #168291)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 14 09:29:32 PST 2025
================
@@ -2372,8 +2372,10 @@ struct VPFirstOrderRecurrencePHIRecipe : public VPHeaderPHIRecipe {
VP_CLASSOF_IMPL(VPDef::VPFirstOrderRecurrencePHISC)
VPFirstOrderRecurrencePHIRecipe *clone() override {
- return new VPFirstOrderRecurrencePHIRecipe(
+ auto *R = new VPFirstOrderRecurrencePHIRecipe(
cast<PHINode>(getUnderlyingInstr()), *getOperand(0));
+ R->addOperand(getOperand(1));
----------------
fhahn wrote:
Yep, but only exposed now (previosuly we would never clone plans with VPFirstOrderRecurrencePHIRecipe)
https://github.com/llvm/llvm-project/pull/168291
More information about the llvm-commits
mailing list