[llvm-commits] [llvm] r62359 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Chris Lattner
sabre at nondot.org
Fri Jan 16 13:15:56 PST 2009
Author: lattner
Date: Fri Jan 16 15:15:56 2009
New Revision: 62359
URL: http://llvm.org/viewvc/llvm-project?rev=62359&view=rev
Log:
new nodes should be added to the worklist, not old nodes.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=62359&r1=62358&r2=62359&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Fri Jan 16 15:15:56 2009
@@ -3358,7 +3358,7 @@
: 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 @@
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));
More information about the llvm-commits
mailing list