[llvm] [VPlan] Create resume phis in scalar preheader early. (NFC) (PR #166099)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 4 11:48:43 PST 2025
================
@@ -346,6 +346,8 @@ TEST_F(VPIRVerifierTest, testVerifyIRPhiInScalarHeaderVPIRBB) {
Function *F = M.getFunction("f");
BasicBlock *LoopHeader = F->getEntryBlock().getSingleSuccessor();
auto Plan = buildVPlan(LoopHeader);
+ VPValue *Zero = Plan->getConstantInt(32, 0);
+ Plan->getScalarHeader()->front().addOperand(Zero);
----------------
fhahn wrote:
The initial plan now already has the operands of the scalar header phis set up correctly, so here we now add anothe operand to trigger a mismatch between #incoming values and #predecessors
https://github.com/llvm/llvm-project/pull/166099
More information about the llvm-commits
mailing list