diff options
author | zhongyunde <zhongyunde@huawei.com> | 2022-10-01 15:36:46 +0800 |
---|---|---|
committer | zhongyunde <zhongyunde@huawei.com> | 2022-10-01 21:27:42 +0800 |
commit | 4a549be9c3677c75c3ad2c8881a46fb59e245823 (patch) | |
tree | f050fdaacbad254f1d6fa7e1321cb5825f1c5043 /llvm/lib/Transforms/Utils/LoopVersioning.cpp | |
parent | 38a636a5f2ae98d9986db24f1f2288d952d71797 (diff) | |
download | llvm-4a549be9c3677c75c3ad2c8881a46fb59e245823.zip llvm-4a549be9c3677c75c3ad2c8881a46fb59e245823.tar.gz llvm-4a549be9c3677c75c3ad2c8881a46fb59e245823.tar.bz2 |
[AArch64] Lower multiplication by a negative constant to shl+sub+shl
Change the costmodel to lower a = b * C where C = -(2^n - 2^m) to
lsl w8, w0, m
sub w0, w8, w0, lsl n
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D134934
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
0 files changed, 0 insertions, 0 deletions