llvm-project
91f3965b - [LoopInterchange] Fix the vectorizable check for a loop (#133667)

Commit
219 days ago
[LoopInterchange] Fix the vectorizable check for a loop (#133667) In the profitability check for vectorization, the dependency matrix was not handled correctly. This can result to make a wrong decision: It may say "this loop can be vectorized" when in fact it cannot. The root cause of this is that the check process early returns when it finds '=' or 'I' in the dependency matrix. To make sure that we can actually vectorize the loop, we need to check all the rows of the matrix. This patch fixes the process of checking whether we can vectorize the loop or not. Now it won't make a wrong decision for a loop that cannot be vectorized. Related: #131130
Author
Parents
Loading