aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorRyotaro Kasuga <kasuga.ryotaro@fujitsu.com>2025-04-03 16:21:19 +0900
committerGitHub <noreply@github.com>2025-04-03 16:21:19 +0900
commit91f3965be43ccb5291fcb5578b62648a1ece17bc (patch)
tree8d7587c2348bd42c9ff8971217ef8d8175100536 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parentb6c0ce0bb67d822fac1e3b42461f66c261c1157c (diff)
downloadllvm-91f3965be43ccb5291fcb5578b62648a1ece17bc.zip
llvm-91f3965be43ccb5291fcb5578b62648a1ece17bc.tar.gz
llvm-91f3965be43ccb5291fcb5578b62648a1ece17bc.tar.bz2
[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
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions