diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-01-16 21:15:56 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-01-16 21:15:56 +0000 |
| commit | 41828cdb0ab91d7e7e23dbc73806e0a1e7c02516 (patch) | |
| tree | 749329812314672096077775bdc951e0b9f6ec6b /llvm/lib/CodeGen | |
| parent | 5d7813cb2dff3dce34d418c311554a02723bdca3 (diff) | |
| download | bcm5719-llvm-41828cdb0ab91d7e7e23dbc73806e0a1e7c02516.tar.gz bcm5719-llvm-41828cdb0ab91d7e7e23dbc73806e0a1e7c02516.zip | |
new nodes should be added to the worklist, not old nodes.
llvm-svn: 62359
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 8b984665be0..46c62ca56bd 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -3358,7 +3358,7 @@ SDValue DAGCombiner::ReduceLoadWidth(SDNode *N) { : DAG.getExtLoad(ExtType, VT, LN0->getChain(), NewPtr, LN0->getSrcValue(), LN0->getSrcValueOffset() + PtrOff, EVT, LN0->isVolatile(), NewAlign); - AddToWorkList(N); + AddToWorkList(Load.Node); if (CombineSRL) { WorkListRemover DeadNodes(*this); DAG.ReplaceAllUsesOfValueWith(N0.getValue(1), Load.getValue(1), @@ -3366,6 +3366,7 @@ SDValue DAGCombiner::ReduceLoadWidth(SDNode *N) { CombineTo(N->getOperand(0).getNode(), Load); } else CombineTo(N0.getNode(), Load, Load.getValue(1)); + if (ShAmt) { if (Opc == ISD::SIGN_EXTEND_INREG) return DAG.getNode(Opc, VT, Load, N->getOperand(1)); |

