[PATCH] D38785: [LV/LAA] Avoid secializing a loop for stride=1 when this predicate implies a single-iteration loop
Silviu Baranga via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 11 01:39:33 PDT 2017
silviu.baranga added a comment.
It sounds like this is a profitability issue and therefore the LAA users should handle this? Maybe the users would also want to be more general (I think a loop with an iteration count of 2 is probably not worth vectorizing).
Another issue is that if LV would somehow add a stride == 1 predicate, LAA wouldn't see it so the problem wouldn't go away.
Do you happen to know what transformation we're blocking here?
https://reviews.llvm.org/D38785
More information about the llvm-commits
mailing list