diff options
author | Craig Topper <craig.topper@intel.com> | 2020-01-14 16:56:17 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2020-01-14 17:05:23 -0800 |
commit | 57eb56b83926675dd8a554fc8a8e28ee57278f90 (patch) | |
tree | 9500a72a40746cce1e04917be6e298b89fb9725a /llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp | |
parent | ab035647061272b7efa39364c42e48972cebc0ab (diff) | |
download | llvm-57eb56b83926675dd8a554fc8a8e28ee57278f90.zip llvm-57eb56b83926675dd8a554fc8a8e28ee57278f90.tar.gz llvm-57eb56b83926675dd8a554fc8a8e28ee57278f90.tar.bz2 |
[X86] Swap the 0 and the fudge factor in the constant pool for the 32-bit mode i64->f32/f64/f80 uint_to_fp algorithm.
This allows us to generate better code for selecting the fixup
to load.
Previously when the sign was set we had to load offset 0. And
when it was clear we had to load offset 4. This required a testl,
setns, zero extend, and finally a mul by 4. By switching the offsets
we can just shift the sign bit into the lsb and multiply it by 4.
Diffstat (limited to 'llvm/lib/Target/ARM/Disassembler/ARMDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions