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 | df874eed5695420c71bf55cc6a11725631ec2b88 (patch) | |
tree | 17677fb8faf4e3f61bc93ab67266f8b8e6f20104 /lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | 07354e532b0df9b2a6ec6fd7321614d7132437ee (diff) |
new nodes should be added to the worklist, not old nodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 8b984665be..46c62ca56b 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/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)); |