[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jan 7 14:44:24 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.10 -> 1.11
---
Log message:
Fix a thinko in the reassociation code, fixing Generic/badlive.ll
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.10 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.11
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.10 Fri Jan 7 15:56:24 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Fri Jan 7 16:44:09 2005
@@ -599,7 +599,7 @@
// Reassociate ((X op C1) op C2) if possible.
if (N1.getOpcode() == Opcode && isAssociativeBinOp(Opcode))
if (ConstantSDNode *N3C = dyn_cast<ConstantSDNode>(N1.Val->getOperand(1)))
- return getNode(Opcode, VT, N3C->getOperand(0),
+ return getNode(Opcode, VT, N1.Val->getOperand(0),
getNode(Opcode, VT, N2, N1.Val->getOperand(1)));
}
More information about the llvm-commits
mailing list