[llvm] [LV][VPlan] Implement VPlan-based cost for exit condition. (PR #125640)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 7 02:03:49 PDT 2025


================
@@ -92,9 +92,11 @@ loop.end:
 
 define i64 @vectorization_not_profitable_due_to_trunc(ptr dereferenceable(800) %src) {
 ; CHECK-LABEL: LV: Checking a loop in 'vectorization_not_profitable_due_to_trunc'
-; CHECK: LV: Selecting VF: 1.
-; CHECK-NEXT: Calculating cost of work in exit block vector.early.exit:
-; CHECK-NEXT: LV: Vectorization is possible but not beneficial.
+; CHECK: Calculating cost of work in exit block vector.early.exit:
----------------
david-arm wrote:

Hmm, the test wasn't supposed to be profitable due to the trunc. Do you know why it has changed? It would be good to keep the test not vectorising due to profitability if possible.

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


More information about the llvm-commits mailing list