[PowerPC] Materialize i64 constants using rotation with masking
authorHal Finkel <hfinkel@anl.gov>
Mon, 5 Jan 2015 03:41:38 +0000 (03:41 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 5 Jan 2015 03:41:38 +0000 (03:41 +0000)
commit9cad6c8a24ea0f87953815c6005ddd52789c7dde
treee7ab6ae32a97d4a5ab78c46069b160baef2ba67e
parent5634622da9983a35099b994472f6a96d01e52c31
[PowerPC] Materialize i64 constants using rotation with masking

r225135 added the ability to materialize i64 constants using rotations in order
to reduce the instruction count. Sometimes we can use a rotation only with some
extra masking, so that we take advantage of the fact that generating a bunch of
extra higher-order 1 bits is easy using li/lis.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225147 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/README.txt
test/CodeGen/PowerPC/constants-i64.ll