aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2020-05-01 16:57:12 -0700
committerJessica Paquette <jpaquette@apple.com>2020-05-05 18:35:39 -0700
commitb1b86d1c28150d3e54e5d33072b4afb6011b7ab0 (patch)
treed449bc694b259d0db72db6e487de693884b798bf /clang/lib/Frontend/CompilerInvocation.cpp
parent17fc6518608fa4bffda12c5a86dd154bcfdbee88 (diff)
downloadllvm-b1b86d1c28150d3e54e5d33072b4afb6011b7ab0.zip
llvm-b1b86d1c28150d3e54e5d33072b4afb6011b7ab0.tar.gz
llvm-b1b86d1c28150d3e54e5d33072b4afb6011b7ab0.tar.bz2
[AArch64][GlobalISel] Fold shifts into G_ICMP
Since G_ICMP can be selected to a SUBS, we can fold shifts into such compares. E.g. ``` cmp w1, w0, lsl #3 cmp w1, w0, lsr #3 cmp w1, w0, asr #3 ``` This is done the same way as for adds and subtracts, using `selectShiftedRegister`. This gives some minor code size savings on CTMark. https://reviews.llvm.org/D79365
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions