[llvm] [LV]Fix/improve max safe distance analysis (PR #121156)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 12:10:44 PST 2025


================
@@ -226,7 +226,7 @@ for.end:
 
 ;Check the new calculation of the maximum safe distance in bits which can be vectorized.
 ;The previous behavior did not take account that the stride was 2.
-;Therefore the maxVF was computed as 8 instead of 4, as the dependence distance here is 6 iterations, given by |N-(N-12)|/2.
+;Therefore the maxVF was computed as 8 instead of 2, as the dependence distance here is 6 iterations, given by |N-(N-12)|/2.
----------------
fhahn wrote:

Is the comment here not accurate any more w.r.t to the dep distance of 6?

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


More information about the llvm-commits mailing list