1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 22:42:46 +02:00
llvm-mirror/lib/CodeGen/SelectionDAG
Chris Lattner 7f0f0854fa Teach the dag mechanism that this:
long long test2(unsigned A, unsigned B) {
        return ((unsigned long long)A << 32) + B;
}

is equivalent to this:

long long test1(unsigned A, unsigned B) {
        return ((unsigned long long)A << 32) | B;
}

Now they are both codegen'd to this on ppc:

_test2:
        blr

or this on x86:

test2:
        movl 4(%esp), %edx
        movl 8(%esp), %eax
        ret

llvm-svn: 21231
2005-04-11 20:29:59 +00:00
..
LegalizeDAG.cpp Teach the dag mechanism that this: 2005-04-11 20:29:59 +00:00
Makefile Change Library Names Not To Conflict With Others When Installed 2004-10-27 23:18:45 +00:00
SelectionDAG.cpp Don't bother sign/zext_inreg'ing the result of an and operation if we know 2005-04-10 23:37:16 +00:00
SelectionDAGISel.cpp Emit BRCONDTWOWAY when possible. 2005-04-09 03:30:29 +00:00
SelectionDAGPrinter.cpp Don't mash stuff together. 2005-01-16 07:28:31 +00:00