llvm-6502/lib
Chris Lattner 2f690c84fa Implement a few symbolic constant folding things. X ? Y : Y is Y.
Fold:
seteq ({ short }* cast (int 1 to { short }*), { short }* null)
setlt ({ short }* cast (int 1 to { short }*), { short }* cast (int 2 to { short }*))

to false/true.  These last two commonly occur in the output of compilers that
tag integers, like cozmic's scheme compiler.

Tested by Regression/Assembler/ConstantExprFold.llx


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25112 91177308-0d34-0410-b5e6-96231b3b80d8
2006-01-05 07:49:30 +00:00
..
Analysis Make the -print-alias-sets pass work for printing out something other than 2006-01-03 06:05:22 +00:00
Archive more C++ daintiness 2005-12-26 14:31:26 +00:00
AsmParser
Bytecode more C++ daintiness 2005-12-26 14:31:26 +00:00
CodeGen Added initial support for DEBUG_LABEL allowing debug specific labels to be 2006-01-05 01:25:28 +00:00
Debugger
ExecutionEngine
Linker
Support
System
Target unbreak the build, these are now in TargetSelectionDAG.td 2006-01-05 04:48:15 +00:00
Transforms Pull inline methods out of the pass class definition to make it easier to 2006-01-03 19:13:17 +00:00
VMCore Implement a few symbolic constant folding things. X ? Y : Y is Y. 2006-01-05 07:49:30 +00:00
Makefile