[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


================
@@ -387,8 +389,6 @@ TEST_F(VPIRVerifierTest, testVerifyIRPhiInExitVPIRBB) {
                         {HeaderBlock->front().getVPSingleValue()});
   DefI->insertBefore(Plan->getMiddleBlock()->getTerminator());
   Plan->getExitBlocks()[0]->front().addOperand(DefI);
-  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 this change is not needed any more to fix them up.

https://github.com/llvm/llvm-project/pull/166099


More information about the llvm-commits mailing list