Implement a couple improvements:
authorNate Begeman <natebegeman@mac.com>
Wed, 17 Aug 2005 00:20:08 +0000 (00:20 +0000)
committerNate Begeman <natebegeman@mac.com>
Wed, 17 Aug 2005 00:20:08 +0000 (00:20 +0000)
commit456f1e890cb059fedb9f5d3f315c80e4f98f429b
treea2b52c81079ac85655d0e3574b1ea978927f396b
parentf7cc47cdfe53350b8fc99551732b5656ef9b0f0a
Implement a couple improvements:
Remove dead code in ISD::Constant handling
Add support for add long, imm16

We now codegen 'long long foo(long long a) { return ++a; }'
as:
addic r4, r4, 1
addze r3, r3
blr

instead of:
li r2, 1
li r5, 0
addc r2, r4, r2
adde r3, r3, r5
blr

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22811 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelPattern.cpp