aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2020-08-04 10:37:57 -0500
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2020-08-04 10:38:15 -0500
commit14d726acd6041ee8fc595e48ec871b50b40ccc1d (patch)
treeabccd1389cc409ef995feacc5ce11ca77d2146a0 /llvm/lib/Support/CommandLine.cpp
parent5e0a9dc0ad7704b7c49995101629010f5ff98cd2 (diff)
downloadllvm-14d726acd6041ee8fc595e48ec871b50b40ccc1d.zip
llvm-14d726acd6041ee8fc595e48ec871b50b40ccc1d.tar.gz
llvm-14d726acd6041ee8fc595e48ec871b50b40ccc1d.tar.bz2
[PowerPC] Don't remove single swap between the load and store
The swap removal pass looks to remove swaps when a loaded value is swapped, some number of lane-insensitive operations are performed and then the value is swapped again and stored. However, in a situation where we load the value, swap it and then store it without swapping again, the pass erroneously removes the single swap. The reason is that both checks in the same equivalence class: - load feeds a swap - swap feeds a store pass. However, there is no check that the two swaps are actually a single swap. This patch just fixes that. Differential revision: https://reviews.llvm.org/D84785
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions