[llvm] [VPlan] Scalarize to first-lane-only directly on VPlan (PR #184267)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 01:50:45 PDT 2026
================
@@ -8,14 +8,14 @@ target triple = "arm64-apple-macosx"
define void @udiv_rhs_opt_cost(ptr %dst) #0 {
; CHECK-LABEL: 'udiv_rhs_opt_cost'
; CHECK: LV: Found an estimated cost of 5 for VF 1 For instruction: %div = udiv i8 %iv.trunc, 3
-; CHECK: Cost of 5 for VF 2: CLONE ir<%div> = udiv vp<[[VP7:%[0-9]+]]>, ir<3>
+; CHECK: Cost of 5 for VF 2: CLONE ir<%div> = udiv ir<%iv.trunc>, ir<3>
----------------
fhahn wrote:
Similarly, I think it would be good to add the following test as well, https://llvm.godbolt.org/z/7bdMaqxr1, showing preserving original wrap flags on `trunc` now
https://github.com/llvm/llvm-project/pull/184267
More information about the llvm-commits
mailing list