aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
diff options
context:
space:
mode:
authorRyotaro Kasuga <kasuga.ryotaro@fujitsu.com>2025-05-13 21:14:14 +0900
committerGitHub <noreply@github.com>2025-05-13 21:14:14 +0900
commite99ca74dc187a86671dd5b13c89fe2755465078a (patch)
treebc1aba4aa61be0fc14a81137cd03a36f0a46fd3d /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
parent8be514cc96345feb35d8d8a372ee771c6d69a73f (diff)
downloadllvm-e99ca74dc187a86671dd5b13c89fe2755465078a.zip
llvm-e99ca74dc187a86671dd5b13c89fe2755465078a.tar.gz
llvm-e99ca74dc187a86671dd5b13c89fe2755465078a.tar.bz2
[LoopInterchange] Relax the legality check to accept more patterns (#139690)
When proving the legality of exchanging two loops, it doesn't need to check the elements of the direction vectors associated with the loops outside of the two target loops. Before this patch, the legality check looked at all elements of a direction vector to calculate the lexicographically order of the vector, which may reject some legal exchanges. For example, if a direction vector is `[* < =]`, it is safe to swap the last two loops because the corresponding subsequence of the vector (`[< =]`) is lexicographically positive for both before and after the exchange. However, the its order is unknown if we don't drop the prefix since the first element is `*`. This patch improves the logic of legality check to ignore such unrelated prefixes of direction vectors.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
0 files changed, 0 insertions, 0 deletions