projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b00a642
)
Fix a thinko in the reassociation code, fixing Generic/badlive.ll
author
Chris Lattner
<sabre@nondot.org>
Fri, 7 Jan 2005 22:44:09 +0000
(22:44 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 7 Jan 2005 22:44:09 +0000
(22:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19359
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 25ec8ff052904e3e237697f5255c7382724b4f31..6ab1d4595755bbebbc0484185f9504811a2371ac 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/
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, N
3C
->getOperand(0),
+ return getNode(Opcode, VT, N
1.Val
->getOperand(0),
getNode(Opcode, VT, N2, N1.Val->getOperand(1)));
}