llvm-6502/lib/Transforms
Tobias Grosser 46431d7a93 InstCombine: Match min/max hidden by sext/zext
X = sext x; x >s c ? X : C+1 --> X = sext x; X <s C+1 ? C+1 : X
X = sext x; x <s c ? X : C-1 --> X = sext x; X >s C-1 ? C-1 : X
X = zext x; x >u c ? X : C+1 --> X = zext x; X <u C+1 ? C+1 : X
X = zext x; x <u c ? X : C-1 --> X = zext x; X >u C-1 ? C-1 : X
X = sext x; x >u c ? X : C+1 --> X = sext x; X <u C+1 ? C+1 : X
X = sext x; x <u c ? X : C-1 --> X = sext x; X >u C-1 ? C-1 : X

Instead of calculating this with mixed types promote all to the
larger type. This enables scalar evolution to analyze this
expression. PR8866

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123034 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-07 21:33:14 +00:00
..
Hello
InstCombine InstCombine: Match min/max hidden by sext/zext 2011-01-07 21:33:14 +00:00
Instrumentation
IPO Improve the accuracy of the inlining heuristic looking for the 2011-01-04 19:01:54 +00:00
Scalar Add the CallInst optimizations that don't involve expanding inline assembly to 2011-01-06 02:56:42 +00:00
Utils Remove all uses of the "ugly" method BranchInst::setUnconditionalDest(). 2011-01-07 20:25:56 +00:00
Makefile