diff options
author | Jessica Paquette <jpaquette@apple.com> | 2020-02-07 09:07:47 -0800 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2020-02-07 11:15:25 -0800 |
commit | 609a489e052e8ed2731aebbcc7828de1102e871d (patch) | |
tree | c8a2662f870f15539d9d1558845da1ec54f9ea99 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 6370c7c13e6d7cfa70197e9a45033e2b845e1b9e (diff) | |
download | llvm-609a489e052e8ed2731aebbcc7828de1102e871d.zip llvm-609a489e052e8ed2731aebbcc7828de1102e871d.tar.gz llvm-609a489e052e8ed2731aebbcc7828de1102e871d.tar.bz2 |
[AArch64][GlobalISel] Reland SLT/SGT TBNZ optimization
The issue in the previous commits was that we swap the LHS and RHS while
looking for the constant. In SLT/SGT, the constant must be on the RHS, or the
optimization is invalid.
Move the swapping logic after the check for the SLT/SGT case and update tests.
Original commits:
d78cefb1601070cb028b61bbc1bd6f25a9c1837c
a3738414072900ace9cbbe209d0195a3443d1d54
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions