[llvm] [LV] Emit truncate for widen-induction in VPlan during construction. (PR #225991)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 01:57:27 PDT 2026


================
@@ -449,7 +449,8 @@ define i32 @select_trunc_non_const_iv_start_signed_guard(ptr %a, i32 %rdx_start,
 ; CHECK-VF1IC4-NEXT:    [[TMP7:%.*]] = add i64 [[IV]], 1
 ; CHECK-VF1IC4-NEXT:    [[TMP8:%.*]] = add i64 [[IV]], 2
 ; CHECK-VF1IC4-NEXT:    [[TMP9:%.*]] = add i64 [[IV]], 3
-; CHECK-VF1IC4-NEXT:    [[TMP10:%.*]] = trunc i64 [[IV]] to i32
+; CHECK-VF1IC4-NEXT:    [[TMP19:%.*]] = trunc i64 [[INDEX]] to i32
+; CHECK-VF1IC4-NEXT:    [[TMP10:%.*]] = add i32 [[IV_START]], [[TMP19]]
----------------
artagnon wrote:

... and here?

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


More information about the llvm-commits mailing list