Allow remat of LI on PPC.
authorHal Finkel <hfinkel@anl.gov>
Tue, 28 Aug 2012 02:10:33 +0000 (02:10 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 28 Aug 2012 02:10:33 +0000 (02:10 +0000)
commitf3c3828e57d922bbe912ffabbd9252b9f5100c14
tree88c10389bc18cee5a5f9045bc909db1d7c926c29
parentd939cd68f40e6fa0ccd6bee6391374b66abd71a1
Allow remat of LI on PPC.

Allow load-immediates to be rematerialised in the register coalescer for
PPC. This makes test/CodeGen/PowerPC/big-endian-formal-args.ll fail,
because it relies on a register move getting emitted. The immediate load is
equivalent, so change this test case.

Patch by Tobias von Koch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162727 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstr64Bit.td
lib/Target/PowerPC/PPCInstrInfo.td
test/CodeGen/PowerPC/big-endian-formal-args.ll
test/CodeGen/PowerPC/remat-imm.ll [new file with mode: 0644]