[llvm] [VPlan] Add vputils::reconstructSSA (PR #212209)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 18:57:55 PDT 2026


================
@@ -2066,24 +2066,6 @@ TEST_F(VPUtilsTest, ReconstructSSACycle) {
   EXPECT_EQ(Phi2->getIncomingValueForBlock(VPBB1), Def1);
 }
 
-TEST_F(VPUtilsTest, ReconstructSSAUnreachableCycle) {
-  VPlan &Plan = getPlan();
-  VPBasicBlock *VPBB1 = Plan.getEntry();
-  VPBasicBlock *VPBB2 = Plan.createVPBasicBlock("");
-
-  //     VPBB1     VPBB2 <-+
-  //                 |     |
-  //                 +-----+
-  VPBlockUtils::connectBlocks(VPBB2, VPBB2);
-
-  VPValue *C = Plan.getConstantInt(32, 1);
-  VPIRFlags AddFlags = VPIRFlags::getDefaultFlags(Instruction::Add);
-  auto *Def1 = new VPInstruction(Instruction::Add, {C, C}, AddFlags);
-  VPBB1->appendRecipe(Def1);
-
-  EXPECT_TRUE(isa<VPPhi>(vputils::reconstructSSA(VPBB2, {{VPBB1, Def1}})));
----------------
lukel97 wrote:

Done in https://github.com/llvm/llvm-project/pull/212209/commits/0c4a5c8f095613fd295fe8451a538ba94cbcad76

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


More information about the llvm-commits mailing list