[llvm] [LV] Use ICMP_UGE for BranchOnCount when VF is scalable (PR #102575)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 00:15:36 PDT 2024


================
@@ -38,6 +38,32 @@ define dso_local double @test(ptr nocapture noundef readonly %data, ptr nocaptur
 ; CHECK-NEXT:    [[INDEX_NEXT]] = add nuw i64 [[INDEX]], 2
 ; CHECK-NEXT:    [[TMP15:%.*]] = icmp eq i64 [[INDEX_NEXT]], [[N_VEC]]
 ; CHECK-NEXT:    br i1 [[TMP15]], label [[MIDDLE_BLOCK:%.*]], label [[VECTOR_BODY]], !llvm.loop [[LOOP0:![0-9]+]]
+; CHECK:       middle.block:
----------------
wangpc-pp wrote:

Double checked and it existed before.

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


More information about the llvm-commits mailing list