[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Oct 21 14:23:37 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
DAGCombiner.cpp updated: 1.52 -> 1.53
---
Log message:
add a case missing from the dag combiner that exposed the failure on
2005-10-21-longlonggtu.ll.
---
Diffs of the changes: (+3 -0)
DAGCombiner.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.52 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.53
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.52 Thu Oct 20 20:51:45 2005
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Fri Oct 21 16:23:25 2005
@@ -2370,6 +2370,9 @@
// Canonicalize setgt X, Min --> setne X, Min
if ((Cond == ISD::SETGT || Cond == ISD::SETUGT) && C1 == MinVal)
return DAG.getSetCC(VT, N0, N1, ISD::SETNE);
+ // Canonicalize setlt X, Max --> setne X, Max
+ if ((Cond == ISD::SETLT || Cond == ISD::SETULT) && C1 == MaxVal)
+ return DAG.getSetCC(VT, N0, N1, ISD::SETNE);
// If we have setult X, 1, turn it into seteq X, 0
if ((Cond == ISD::SETLT || Cond == ISD::SETULT) && C1 == MinVal+1)
More information about the llvm-commits
mailing list