[llvm] [VPlan] Directly unroll VectorPointerRecipe (PR #168886)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 25 13:02:14 PST 2025


================
@@ -21,7 +21,8 @@ define void @sdiv_feeding_gep(ptr %dst, i32 %x, i64 %M, i64 %conv6, i64 %N) {
 ; CHECK-NEXT:    br i1 [[TMP7]], label %[[SCALAR_PH]], label %[[VECTOR_PH:.*]]
 ; CHECK:       [[VECTOR_PH]]:
 ; CHECK-NEXT:    [[TMP8:%.*]] = call i64 @llvm.vscale.i64()
-; CHECK-NEXT:    [[TMP9:%.*]] = mul nuw i64 [[TMP8]], 4
+; CHECK-NEXT:    [[TMP11:%.*]] = mul nuw i64 [[TMP8]], 2
+; CHECK-NEXT:    [[TMP9:%.*]] = mul i64 [[TMP11]], 2
----------------
fhahn wrote:

Originally thought this looks like a missing fold, but cannot be folded due to multiple users?

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


More information about the llvm-commits mailing list