diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-05 07:49:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-05 07:49:30 +0000 |
commit | 2f690c84fa1682a2009423539af16d5f530006f9 (patch) | |
tree | 88e1bcf4be44a119501af3d98f0092df3f87de9b /lib/Transforms/Utils/CodeExtractor.cpp | |
parent | 63540f5cf1d93ee6a44ba86bb012391be38dee83 (diff) |
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
Diffstat (limited to 'lib/Transforms/Utils/CodeExtractor.cpp')
0 files changed, 0 insertions, 0 deletions