diff options
author | Ben Shi <powerman1st@163.com> | 2021-01-09 10:37:21 +0800 |
---|---|---|
committer | Ben Shi <powerman1st@163.com> | 2021-01-09 10:37:21 +0800 |
commit | 55f0a1b06632688f08eb616fe02674cf2e666080 (patch) | |
tree | f0c067beac9140acb648548f9ea3e8612dfe9aa9 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 467cbd2981840745a84dda07855c4e41501f6903 (diff) | |
download | llvm-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