[llvm] [VPlan] Expand AddRecs in VPSCEVExpander (PR #209921)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 01:55:06 PDT 2026


================
@@ -525,17 +524,16 @@ exit:
 define void @addrec_nuw_flags(ptr %dst) {
 ; CHECK-LABEL: VPlan for loop in 'addrec_nuw_flags'
 ; CHECK:  VPlan 'Final VPlan for VF={4},UF={1}' {
-; CHECK-NEXT:  Live-in ir<%3> = original trip-count
 ; CHECK-EMPTY:
 ; CHECK-NEXT:  ir-bb<outer>:
 ; CHECK-NEXT:    IR   %outer.iv = phi i64 [ 0, %entry ], [ %outer.iv.next, %outer.latch ]
-; CHECK-NEXT:    IR   %0 = shl nuw nsw i64 %outer.iv, 2
----------------
fhahn wrote:

Here it looks like we drop `nsw`. Could we preserve it?

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


More information about the llvm-commits mailing list