[llvm] [VPlan] Fix header phi VPInstruction verification. NFC (PR #151472)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 31 02:26:18 PDT 2025
================
@@ -287,6 +287,38 @@ TEST_F(VPVerifierTest, BlockOutsideRegionWithParent) {
#endif
}
+TEST_F(VPVerifierTest, NonHeaderPHIInHeader) {
+ VPlan &Plan = getPlan();
+ VPValue *Zero = Plan.getOrAddLiveIn(ConstantInt::get(Type::getInt32Ty(C), 0));
+ auto *CanIV = new VPCanonicalIVPHIRecipe(Zero, {});
+ VPInstruction *BranchOnCond =
----------------
lukel97 wrote:
FWIW, this is all just copied from the previous tests. Should we go ahead and do a bulk tidy up of all the tests in a separate PR?
https://github.com/llvm/llvm-project/pull/151472
More information about the llvm-commits
mailing list