llvm-6502/lib/CodeGen/SelectionDAG
Evan Cheng d40d03e1bd Teach dag combine to fold the following transformation more aggressively:
(OP (trunc x), (trunc y)) -> (trunc (OP x, y))

Unfortunately this simple change causes dag combine to infinite looping. The problem is the shrink demanded ops optimization tend to canonicalize expressions in the opposite manner. That is badness. This patch disable those optimizations in dag combine but instead it is done as a late pass in sdisel.

This also exposes some deficiencies in dag combine and x86 setcc / brcond lowering. Teach them to look pass ISD::TRUNCATE in various places.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92849 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-06 19:38:29 +00:00
..
CallingConvLower.cpp Change errs() to dbgs(). 2010-01-05 01:24:50 +00:00
CMakeLists.txt Rename SelectionDAGLowering to SelectionDAGBuilder, and rename 2009-11-23 18:04:58 +00:00
DAGCombiner.cpp Teach dag combine to fold the following transformation more aggressively: 2010-01-06 19:38:29 +00:00
FastISel.cpp Don't use the ISD::NodeType enum for SDNode opcodes, as CodeGen 2010-01-05 22:26:32 +00:00
FunctionLoweringInfo.cpp Avoid going through the LLVMContext for type equality where it's safe to dereference the type pointer. 2010-01-05 13:12:22 +00:00
FunctionLoweringInfo.h Move CopyCatchInfo into FunctionLoweringInfo.cpp too, for consistency. 2009-11-23 18:12:11 +00:00
InstrEmitter.cpp Target-independent support for TargetFlags on BlockAddress operands, 2009-11-20 23:18:13 +00:00
InstrEmitter.h Fix a typo in a comment. 2009-11-16 20:35:59 +00:00
LegalizeDAG.cpp Change errs() to dbgs(). 2010-01-05 01:24:53 +00:00
LegalizeFloatTypes.cpp Change errs() to dbgs(). 2010-01-05 01:24:48 +00:00
LegalizeIntegerTypes.cpp Change errs() to dbgs(). 2010-01-05 01:24:34 +00:00
LegalizeTypes.cpp Change errs() to dbgs(). 2010-01-05 01:25:04 +00:00
LegalizeTypes.h Implement vector widening, splitting, and scalarizing for SIGN_EXTEND_INREG. 2009-12-11 21:31:27 +00:00
LegalizeTypesGeneric.cpp Remove dead variable. 2009-12-28 01:00:12 +00:00
LegalizeVectorOps.cpp Implement vector widening, splitting, and scalarizing for SIGN_EXTEND_INREG. 2009-12-11 21:31:27 +00:00
LegalizeVectorTypes.cpp Change errs() to dbgs(). 2010-01-05 01:24:40 +00:00
Makefile remove dead makefile flags. 2009-06-24 05:29:56 +00:00
ScheduleDAGFast.cpp Change errs() to dbgs(). 2010-01-05 01:25:09 +00:00
ScheduleDAGList.cpp Change errs() to dbgs(). 2010-01-05 01:24:43 +00:00
ScheduleDAGRRList.cpp The previous code could potentially cause a cycle. Allow ordering w.r.t. a 0 order. 2010-01-06 00:23:35 +00:00
ScheduleDAGSDNodes.cpp Change errs() to dbgs(). 2010-01-05 01:25:11 +00:00
ScheduleDAGSDNodes.h Initial target-independent CodeGen support for BlockAddresses. 2009-10-30 01:27:03 +00:00
SDNodeOrdering.h Allow 0 as an order number. Don't assign an order to formal arguments. 2009-12-22 21:35:02 +00:00
SelectionDAG.cpp Teach dag combine to fold the following transformation more aggressively: 2010-01-06 19:38:29 +00:00
SelectionDAGBuilder.cpp Avoid going through the LLVMContext for type equality where it's safe to dereference the type pointer. 2010-01-05 13:12:22 +00:00
SelectionDAGBuilder.h whitespace cleanup 2010-01-01 23:37:34 +00:00
SelectionDAGISel.cpp Teach dag combine to fold the following transformation more aggressively: 2010-01-06 19:38:29 +00:00
SelectionDAGPrinter.cpp Change errs() to dbgs(). 2010-01-05 01:24:45 +00:00
TargetLowering.cpp Teach dag combine to fold the following transformation more aggressively: 2010-01-06 19:38:29 +00:00