[llvm] [LV] Use SCEV::getElementCount in selectEpilogueVectorizationFactor. (PR #150018)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 23 07:55:30 PDT 2025


================
@@ -152,6 +152,107 @@ exit:
   ret void
 }
 
+define void @main_vf_vscale_x_2_no_epi_iteration(ptr %A) #0 vscale_range(8, 8) {
----------------
fhahn wrote:

Added 2 tests, one where the trip count should be `vscale x 1024` and no reminaing iterations should remain after the main loop if vf is `vscale x 4`. Either I messed someting up or SCEV cannot currently simplify this. Added a TODO

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


More information about the llvm-commits mailing list