1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/lib/VMCore
Chris Lattner ee327e57d2 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

llvm-svn: 25112
2006-01-05 07:49:30 +00:00
..
AsmWriter.cpp
BasicBlock.cpp
ConstantFolding.cpp Implement a few symbolic constant folding things. X ? Y : Y is Y. 2006-01-05 07:49:30 +00:00
ConstantFolding.h
ConstantRange.cpp
Constants.cpp Fix an assertion to allow constant folding of packed values 2006-01-04 01:01:04 +00:00
Dominators.cpp more HP-UX cleanliness 2005-12-26 08:35:06 +00:00
Function.cpp
Globals.cpp
Instruction.cpp
Instructions.cpp
LeakDetector.cpp
Makefile
Mangler.cpp
Module.cpp
ModuleProvider.cpp
Pass.cpp Patch #6's in Saem's refactor-the-passmanager patch series. From him: 2006-01-04 07:47:13 +00:00
PassManagerT.h Patch #6's in Saem's refactor-the-passmanager patch series. From him: 2006-01-04 07:47:13 +00:00
SymbolTable.cpp
SymbolTableListTraitsImpl.h
Type.cpp
Value.cpp
Verifier.cpp