diff options
author | Dan Gohman <gohman@apple.com> | 2008-03-28 23:45:16 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-03-28 23:45:16 +0000 |
commit | 720326628e462f8dcca8999dff372961af3ce76c (patch) | |
tree | 733346301712b2f7fc088755a4553ca454a8b9e0 /lib | |
parent | 76e240de41a0103c7ec7647fdc0ff391e2ec5658 (diff) | |
download | external_llvm-720326628e462f8dcca8999dff372961af3ce76c.zip external_llvm-720326628e462f8dcca8999dff372961af3ce76c.tar.gz external_llvm-720326628e462f8dcca8999dff372961af3ce76c.tar.bz2 |
Fix a tokenfactor node to use the load chain rather than the
load value. This fixes PR2177.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index aea57f2..6cbae42 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/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()); } |