diff options
| author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2018-11-30 08:14:28 +0000 |
|---|---|---|
| committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2018-11-30 08:14:28 +0000 |
| commit | ecc7dcb879c3917f8e2092969511aa5776dcb398 (patch) | |
| tree | 3ff343f7f45473821994d2e7251d079fd665e4e4 /llvm/docs/HowToSetUpLLVMStyleRTTI.rst | |
| parent | 957578ddf71db9efedf9c7ca8a802e6bba3c90eb (diff) | |
| download | bcm5719-llvm-ecc7dcb879c3917f8e2092969511aa5776dcb398.tar.gz bcm5719-llvm-ecc7dcb879c3917f8e2092969511aa5776dcb398.zip | |
[ARM] Don't expand sdiv when optimising for minsize
Don't expand SDIV with an immediate that is a power of 2 if we optimise for
minimum code size. For example:
sdiv %1, i32 4
gets expanded to a sequence of 3 instructions, but this is suboptimal for
minimum code size so instead we just generate a MOV and a SDIV if integer
division is supported.
Differential Revision: https://reviews.llvm.org/D54546
llvm-svn: 347965
Diffstat (limited to 'llvm/docs/HowToSetUpLLVMStyleRTTI.rst')
0 files changed, 0 insertions, 0 deletions

