summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-03 23:43:55 +0000
committerDan Gohman <gohman@apple.com>2008-11-03 23:43:55 +0000
commitb9110e7fbb26eddf9da132831610c351d75e9603 (patch)
tree3400e189897143174be799b29e43b0cbe28570ff /llvm/lib
parentc989a7b6c097bb06b7662b472528720fd14fde4b (diff)
downloadbcm5719-llvm-b9110e7fbb26eddf9da132831610c351d75e9603.tar.gz
bcm5719-llvm-b9110e7fbb26eddf9da132831610c351d75e9603.zip
The ANDMask node folds to a constant, and isn't the node that needs to
have its node id set. The new and and shift nodes are the nodes that need the IDs. This fixes PR2982. llvm-svn: 58655
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelDAGToDAG.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index c3419809786..7ba62189ca0 100644
--- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
@@ -993,8 +993,8 @@ bool X86DAGToDAGISel::MatchAddress(SDValue N, X86ISelAddressMode &AM,
Shift.getOperand(0), NewANDMask);
SDValue NewSHIFT = CurDAG->getNode(ISD::SHL, N.getValueType(),
NewAND, SDValue(C1, 0));
- NewANDMask.getNode()->setNodeId(Shift.getNode()->getNodeId());
- NewAND.getNode()->setNodeId(N.getNode()->getNodeId());
+ NewAND.getNode()->setNodeId(Shift.getNode()->getNodeId());
+ NewSHIFT.getNode()->setNodeId(N.getNode()->getNodeId());
CurDAG->ReplaceAllUsesWith(N, NewSHIFT);
AM.Scale = 1 << ShiftCst;
OpenPOWER on IntegriCloud