aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2021-08-30 21:14:12 +0800
committerBen Shi <ben.shi@streamcomputing.com>2021-09-19 16:35:12 +0800
commitdee5a8ca325f3c752534442233cb601910e918c4 (patch)
treee53f481da1d6ada0f5e06b7c68797b98a82a258d /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parentae0873483d9393d35bd5bdbfcb2bfb843c335cd5 (diff)
downloadllvm-dee5a8ca325f3c752534442233cb601910e918c4.zip
llvm-dee5a8ca325f3c752534442233cb601910e918c4.tar.gz
llvm-dee5a8ca325f3c752534442233cb601910e918c4.tar.bz2
[RISCV] Optimize (add (shl x, c0), (shl y, c1)) with SH*ADD
Optimize (add (shl x, c0), (shl y, c1)) -> (SLLI (SH*ADD x, y), c1), if c0-c1 == 1/2/3. Reviewed By: craig.topper, luismarques Differential Revision: https://reviews.llvm.org/D108916
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions