[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Nate Begeman
natebegeman at mac.com
Thu Oct 20 18:51:56 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
DAGCombiner.cpp updated: 1.51 -> 1.52
---
Log message:
Fix a typo in the dag combiner, so that this can work on i64 targets
---
Diffs of the changes: (+2 -3)
DAGCombiner.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.51 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.52
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.51 Thu Oct 20 19:02:42 2005
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Oct 20 20:51:45 2005
@@ -2607,9 +2607,8 @@
}
// Extract the sign bit and add it to the quotient
SDOperand T =
- DAG.getNode(ISD::SRL, MVT::i32, Q,
- DAG.getConstant(MVT::getSizeInBits(VT)-1,
- TLI.getShiftAmountTy()));
+ DAG.getNode(ISD::SRL, VT, Q, DAG.getConstant(MVT::getSizeInBits(VT)-1,
+ TLI.getShiftAmountTy()));
WorkList.push_back(T.Val);
return DAG.getNode(ISD::ADD, VT, Q, T);
}
More information about the llvm-commits
mailing list