Better codegen of binary integer ops with 32 bit immediate operands.
authorNate Begeman <natebegeman@mac.com>
Fri, 15 Oct 2004 00:50:19 +0000 (00:50 +0000)
committerNate Begeman <natebegeman@mac.com>
Fri, 15 Oct 2004 00:50:19 +0000 (00:50 +0000)
commite0c83a86b0f609e7212fba6679453b8e5bd7fa33
tree642d3c218a04d568b3d765ee8c3ab045e83e1db4
parentd36047dbdb830c3ec659681c99f0348001b57653
Better codegen of binary integer ops with 32 bit immediate operands.
This transformation fires a few dozen times across the testsuite.

For example, int test2(int X) { return X ^ 0x0FF00FF0; }
Old:
_test2:
        lis r2, 4080
        ori r2, r2, 4080
        xor r3, r3, r2
        blr

New:
_test2:
        xoris r3, r3, 4080
        xori r3, r3, 4080
        blr

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