aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2021-01-09 10:37:21 +0800
committerBen Shi <powerman1st@163.com>2021-01-09 10:37:21 +0800
commit55f0a1b06632688f08eb616fe02674cf2e666080 (patch)
treef0c067beac9140acb648548f9ea3e8612dfe9aa9 /clang/lib/Frontend/CompilerInvocation.cpp
parent467cbd2981840745a84dda07855c4e41501f6903 (diff)
downloadllvm-55f0a1b06632688f08eb616fe02674cf2e666080.zip
llvm-55f0a1b06632688f08eb616fe02674cf2e666080.tar.gz
llvm-55f0a1b06632688f08eb616fe02674cf2e666080.tar.bz2
[RISCV] Optimize multiplication with constant
1. Break MUL with specific constant to a SLLI and an ADD/SUB on riscv32 with the M extension. 2. Break MUL with specific constant to two SLLI and an ADD/SUB, if the constant needs a pair of LUI/ADDI to construct. Reviewed by: craig.topper Differential Revision: https://reviews.llvm.org/D93619
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions