[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Chris Lattner sabre at nondot.org
Wed Apr 11 09:52:11 PDT 2007



Changes in directory llvm/lib/CodeGen/SelectionDAG:

DAGCombiner.cpp updated: 1.289 -> 1.290
---
Log message:

fix an infinite loop compiling ldecod, notice by JeffC.


---
Diffs of the changes:  (+1 -1)

 DAGCombiner.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.289 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.290
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.289	Wed Apr 11 01:50:51 2007
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp	Wed Apr 11 11:51:53 2007
@@ -2320,7 +2320,7 @@
     SDOperand SCC = 
       SimplifySelectCC(N0.getOperand(0), N0.getOperand(1),
                        DAG.getConstant(1, VT), DAG.getConstant(0, VT),
-                       cast<CondCodeSDNode>(N0.getOperand(2))->get());
+                       cast<CondCodeSDNode>(N0.getOperand(2))->get(), true);
     if (SCC.Val)
       return SCC;
   }






More information about the llvm-commits mailing list