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

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 30 10:21:29 PDT 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.179 -> 1.180
---
Log message:

Fix FreeBench/fourinarow with the dag isel, by not adding a bogus result
to SHIFT_PARTS nodes


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

 LegalizeDAG.cpp |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.179 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.180
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.179	Tue Aug 30 11:56:19 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	Tue Aug 30 12:21:17 2005
@@ -2388,10 +2388,7 @@
   Ops.push_back(LHSL);
   Ops.push_back(LHSH);
   Ops.push_back(Amt);
-  std::vector<MVT::ValueType> VTs;
-  VTs.push_back(LHSL.getValueType());
-  VTs.push_back(LHSH.getValueType());
-  VTs.push_back(Amt.getValueType());
+  std::vector<MVT::ValueType> VTs(2, LHSL.getValueType());
   Lo = DAG.getNode(NodeOp, VTs, Ops);
   Hi = Lo.getValue(1);
 }






More information about the llvm-commits mailing list