summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-28 23:45:16 +0000
committerDan Gohman <gohman@apple.com>2008-03-28 23:45:16 +0000
commitfd2eb00cc2701b45eb7dc4da1533499107648114 (patch)
tree7501edfd412bdb640c9650da200e3dff9291c37f /llvm/lib
parentf9e7c90129a8def10559c344a920133c2215158e (diff)
downloadbcm5719-llvm-fd2eb00cc2701b45eb7dc4da1533499107648114.tar.gz
bcm5719-llvm-fd2eb00cc2701b45eb7dc4da1533499107648114.zip
Fix a tokenfactor node to use the load chain rather than the
load value. This fixes PR2177. llvm-svn: 48932
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index aea57f2529a..6cbae42839e 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -6021,7 +6021,7 @@ static SDOperand PerformSTORECombine(StoreSDNode *St, SelectionDAG &DAG,
Ld->getAlignment());
SDOperand NewChain = NewLd.getValue(1);
if (TokenFactorIndex != -1) {
- Ops.push_back(NewLd);
+ Ops.push_back(NewChain);
NewChain = DAG.getNode(ISD::TokenFactor, MVT::Other, &Ops[0],
Ops.size());
}
OpenPOWER on IntegriCloud