[llvm] [VPlan] Also duplicated scalar-steps when it enables sinking scalars. (PR #136021)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 18 04:21:00 PDT 2025


================
@@ -735,7 +737,8 @@ define void @cost_duplicate_recipe_for_sinking(ptr %A, i64 %N) #2 {
 ; CHECK-NEXT:    [[TMP68:%.*]] = extractelement <4 x i1> [[TMP22]], i32 0
 ; CHECK-NEXT:    br i1 [[TMP68]], label [[PRED_STORE_IF30:%.*]], label [[PRED_STORE_CONTINUE31:%.*]]
 ; CHECK:       pred.store.if30:
-; CHECK-NEXT:    [[TMP69:%.*]] = shl nsw i64 [[TMP6]], 2
+; CHECK-NEXT:    [[TMP108:%.*]] = add i64 [[INDEX]], 12
+; CHECK-NEXT:    [[TMP69:%.*]] = shl nsw i64 [[TMP108]], 2
----------------
ayalz wrote:

Are these and other sinkings consistent with the original sinkScalarOperands?

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


More information about the llvm-commits mailing list