[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAG.h

Nate Begeman natebegeman at mac.com
Wed Aug 10 18:12:31 PDT 2005



Changes in directory llvm/include/llvm/CodeGen:

SelectionDAG.h updated: 1.33 -> 1.34
---
Log message:

Some SELECT_CC cleanups:
1. move assertions for node creation to getNode()
2. legalize the values returned in ExpandOp immediately
3. Move select_cc optimizations from SELECT's getNode() to SELECT_CC's, 
   allowing them to be cleaned up significantly.

This paves the way to pick up additional optimizations on SELECT_CC, such
as sum-of-absolute-differences.


---
Diffs of the changes:  (+0 -4)

 SelectionDAG.h |    4 ----
 1 files changed, 4 deletions(-)


Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.33 llvm/include/llvm/CodeGen/SelectionDAG.h:1.34
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.33	Wed Aug 10 15:50:42 2005
+++ llvm/include/llvm/CodeGen/SelectionDAG.h	Wed Aug 10 20:12:20 2005
@@ -190,10 +190,6 @@
   SDOperand getSelectCC(SDOperand LHS, SDOperand RHS,
                         SDOperand True, SDOperand False, ISD::CondCode Cond) {
     MVT::ValueType VT = True.getValueType();
-    assert(LHS.getValueType() == RHS.getValueType() &&
-           "LHS and RHS of condition must have same type!");
-    assert(True.getValueType() == False.getValueType() &&
-           "True and False arms of SelectCC must have same type!");
     return getNode(ISD::SELECT_CC, VT, LHS, RHS, True, False,getCondCode(Cond));
   }
   






More information about the llvm-commits mailing list