aboutsummaryrefslogtreecommitdiff
path: root/libcxxabi
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2015-01-04 15:43:55 +0000
committerHal Finkel <hfinkel@anl.gov>2015-01-04 15:43:55 +0000
commit241ba79f954f7546b087a16fd9522b0872d4b9cb (patch)
treed74a41f2564273479060332cbea994da3acbfb31 /libcxxabi
parent7c91552cd927fd998266cfcce21a37cc4dcfab91 (diff)
downloadllvm-241ba79f954f7546b087a16fd9522b0872d4b9cb.zip
llvm-241ba79f954f7546b087a16fd9522b0872d4b9cb.tar.gz
llvm-241ba79f954f7546b087a16fd9522b0872d4b9cb.tar.bz2
[PowerPC] Materialize i64 constants using rotation
Materializing full 64-bit constants on PPC64 can be expensive, requiring up to 5 instructions depending on the locations of the non-zero bits. Sometimes materializing a rotated constant, and then applying the inverse rotation, requires fewer instructions than the direct method. If so, do that instead. In r225132, I added support for forming constants using bit inversion. In effect, this reverts that commit and replaces it with rotation support. The bit inversion is useful for turning constants that are mostly ones into ones that are mostly zeros (thus enabling a more-efficient shift-based materialization), but the same effect can be obtained by using negative constants and a rotate, and that is at least as efficient, if not more. llvm-svn: 225135
Diffstat (limited to 'libcxxabi')
0 files changed, 0 insertions, 0 deletions