[llvm] [VPlan] Relax type of DerivedIV start value (NFC) (PR #206464)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 07:27:49 PDT 2026
================
@@ -330,6 +330,41 @@ TEST_F(VPVerifierTest, NonHeaderPHIInHeader) {
delete PHINode;
}
+TEST_F(VPVerifierTest, DerivedIVWithStartInLoopRegions) {
+ VPlan &Plan = getPlan();
+ auto *I32Ty = Type::getInt32Ty(C);
+ VPBasicBlock *Entry = Plan.getEntry();
+ VPBasicBlock *Latch = Plan.createVPBasicBlock("latch");
+ VPInstruction *DefI = new VPInstruction(
+ Instruction::Add, {Plan.getPoison(I32Ty), Plan.getPoison(I32Ty)},
+ VPIRFlags::getDefaultFlags(Instruction::Add));
+ Entry->appendRecipe(DefI);
----------------
Mel-Chen wrote:
Is `DefI` necessary?
https://github.com/llvm/llvm-project/pull/206464
More information about the llvm-commits
mailing list