aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2021-07-29 20:39:54 +0800
committerBen Shi <ben.shi@streamcomputing.com>2021-07-30 08:36:28 +0800
commitbb6fddb63ca73acb84c39c4d548024bf6398d86e (patch)
tree894c40c57ec4a33e1db82bda92c66b2e43350e6a /clang/lib/Frontend/CompilerInvocation.cpp
parent811be79433638c3c7eeea65f5438044a5ba8de9a (diff)
downloadllvm-bb6fddb63ca73acb84c39c4d548024bf6398d86e.zip
llvm-bb6fddb63ca73acb84c39c4d548024bf6398d86e.tar.gz
llvm-bb6fddb63ca73acb84c39c4d548024bf6398d86e.tar.bz2
Optimize mul in the zba extension with SH*ADD
This patch does the following optimization of mul with a constant. (mul x, 11) -> (SH1ADD (SH2ADD x, x), x) (mul x, 19) -> (SH1ADD (SH3ADD x, x), x) (mul x, 13) -> (SH2ADD (SH1ADD x, x), x) (mul x, 21) -> (SH2ADD (SH2ADD x, x), x) (mul x, 37) -> (SH2ADD (SH3ADD x, x), x) (mul x, 25) -> (SH3ADD (SH1ADD x, x), x) (mul x, 41) -> (SH3ADD (SH2ADD x, x), x) (mul x, 73) -> (SH3ADD (SH3ADD x, x), x) (mul x, 27) -> (SH1ADD (SH3ADD x, x), (SH3ADD x, x)) (mul x, 45) -> (SH2ADD (SH3ADD x, x), (SH3ADD x, x)) (mul x, 81) -> (SH3ADD (SH3ADD x, x), (SH3ADD x, x)) Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D107065
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions