diff options
author | zhongyunde <zhongyunde@huawei.com> | 2022-09-30 01:30:31 +0800 |
---|---|---|
committer | zhongyunde <zhongyunde@huawei.com> | 2022-09-30 01:31:06 +0800 |
commit | 62a51c357cf47127d8044e1bf367f6d1d0612969 (patch) | |
tree | ac2696270a2468e7cf5fe42cb030572f4b2b0ca5 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 535fd753ef8dcfe5c73219ea7173e015a74e4f59 (diff) | |
download | llvm-62a51c357cf47127d8044e1bf367f6d1d0612969.zip llvm-62a51c357cf47127d8044e1bf367f6d1d0612969.tar.gz llvm-62a51c357cf47127d8044e1bf367f6d1d0612969.tar.bz2 |
[AArch64] Lower multiplication by a constant int to shl+sub+shl
Decompose the const 14 can be separated from D132322
Change the costmodel to lower a = b * C where C = 2^n - 2^m to
lsl w8, w0, n
sub w0, w8, w0, lsl m
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D134706
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions