[llvm] [VPlan] Sink single-scalar VPI to replicate regions (PR #208906)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 20 01:12:08 PDT 2026


================
@@ -585,31 +585,34 @@ define void @wide_iv_trunc(ptr %dst, i64 %N) {
 ; CHECK-NEXT:    [[INDEX:%.*]] = phi i64 [ 0, %[[VECTOR_PH]] ], [ [[INDEX_NEXT:%.*]], %[[PRED_STORE_CONTINUE6:.*]] ]
 ; CHECK-NEXT:    [[VEC_IND:%.*]] = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %[[VECTOR_PH]] ], [ [[VEC_IND_NEXT:%.*]], %[[PRED_STORE_CONTINUE6]] ]
 ; CHECK-NEXT:    [[TMP2:%.*]] = icmp ule <4 x i64> [[VEC_IND]], [[BROADCAST_SPLAT]]
-; CHECK-NEXT:    [[TMP1:%.*]] = trunc i64 [[INDEX]] to i32
----------------
artagnon wrote:

Yes, this seems to be a correct generalization, thanks!

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


More information about the llvm-commits mailing list