diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-01-07 22:44:09 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-01-07 22:44:09 +0000 | 
| commit | cda3efa6e514d2ae499617c506723d082f5cd7b0 (patch) | |
| tree | 698b0b5926bde175271f13cdee6ed43179688879 /llvm/lib/CodeGen | |
| parent | a65a2f0c36be0cbe9c9e817e9f18cc4e3f074759 (diff) | |
| download | bcm5719-llvm-cda3efa6e514d2ae499617c506723d082f5cd7b0.tar.gz bcm5719-llvm-cda3efa6e514d2ae499617c506723d082f5cd7b0.zip | |
Fix a thinko in the reassociation code, fixing Generic/badlive.ll
llvm-svn: 19359
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 25ec8ff0529..6ab1d459575 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -599,7 +599,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,      // 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)));    } | 

