llvm-6502/lib/CodeGen/SelectionDAG
Chris Lattner a2daa8c78d add a little peephole optimization. This allows us to codegen:
int a(short i) {
        return i & 1;
}

as

_a:
        andi. r3, r3, 1
        blr

instead of:

_a:
        rlwinm r2, r3, 0, 16, 31
        andi. r3, r2, 1
        blr

on ppc.  It should also help the other risc targets.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21189 91177308-0d34-0410-b5e6-96231b3b80d8
2005-04-09 21:43:54 +00:00
..
LegalizeDAG.cpp Legalize BRCONDTWOWAY into a BRCOND/BR pair if a target doesn't support it. 2005-04-09 03:30:19 +00:00
Makefile Change Library Names Not To Conflict With Others When Installed 2004-10-27 23:18:45 +00:00
SelectionDAG.cpp add a little peephole optimization. This allows us to codegen: 2005-04-09 21:43:54 +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
TargetLowering.cpp Add a hook to find out how the target handles shift amounts that are out of 2005-01-19 03:36:14 +00:00