[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jan 21 16:33:16 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.48 -> 1.49
---
Log message:
More bugfixes for IA64 shifts.
---
Diffs of the changes: (+2 -2)
SelectionDAG.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.48 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.49
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.48 Fri Jan 21 18:20:42 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Fri Jan 21 18:33:03 2005
@@ -655,7 +655,7 @@
// FIXME: This should only be done if the target supports shift
// operations.
if ((C2 & C2-1) == 0) {
- if (N2.getValueType() != MVT::i64) { // FIXME: HACK HACK HACK!
+ if (N1.getValueType() != MVT::i64) { // FIXME: HACK HACK HACK!
SDOperand ShAmt = getConstant(ExactLog2(C2), MVT::i8);
return getNode(ISD::SHL, VT, N1, ShAmt);
}
@@ -666,7 +666,7 @@
// FIXME: This should only be done if the target supports shift
// operations.
if ((C2 & C2-1) == 0 && C2) {
- if (N2.getValueType() != MVT::i64) { // FIXME: HACK HACK HACK!
+ if (N1.getValueType() != MVT::i64) { // FIXME: HACK HACK HACK!
SDOperand ShAmt = getConstant(ExactLog2(C2), MVT::i8);
return getNode(ISD::SRL, VT, N1, ShAmt);
}
More information about the llvm-commits
mailing list