llvm-6502/lib/CodeGen/SelectionDAG
Chris Lattner e3152e54b5 Compile:
int test3(int a, int b) { return (a < 0) ? a : 0; }

to:

_test3:
        srawi r2, r3, 31
        and r3, r2, r3
        blr

instead of:

_test3:
        cmpwi cr0, r3, 1
        li r2, 0
        blt cr0, LBB2_2 ;entry
LBB2_1: ;entry
        mr r3, r2
LBB2_2: ;entry
        blr


This implements: PowerPC/select_lt0.ll:seli32_a_a


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30517 91177308-0d34-0410-b5e6-96231b3b80d8
2006-09-20 06:41:35 +00:00
..
DAGCombiner.cpp Compile: 2006-09-20 06:41:35 +00:00
LegalizeDAG.cpp Expand 64-bit shifts more optimally if we know that the high bit of the 2006-09-20 03:38:48 +00:00
Makefile For PR780: 2006-07-26 16:18:00 +00:00
ScheduleDAG.cpp Added support for machine specific constantpool values. These are useful for 2006-09-12 21:00:35 +00:00
ScheduleDAGList.cpp s|llvm/Support/Visibility.h|llvm/Support/Compiler.h| 2006-08-27 12:54:02 +00:00
ScheduleDAGRRList.cpp s|llvm/Support/Visibility.h|llvm/Support/Compiler.h| 2006-08-27 12:54:02 +00:00
ScheduleDAGSimple.cpp s|llvm/Support/Visibility.h|llvm/Support/Compiler.h| 2006-08-27 12:54:02 +00:00
SelectionDAG.cpp Fold extract_element(cst) to cst 2006-09-19 05:02:39 +00:00
SelectionDAGCSEMap.cpp Added support for machine specific constantpool values. These are useful for 2006-09-12 21:00:35 +00:00
SelectionDAGISel.cpp absolute addresses must match pointer size 2006-09-18 17:59:35 +00:00
SelectionDAGPrinter.cpp Added support for machine specific constantpool values. These are useful for 2006-09-12 21:00:35 +00:00
TargetLowering.cpp Change the default to 0, which means 'default'. 2006-09-05 17:39:15 +00:00