diff options
| author | Dan Gohman <gohman@apple.com> | 2009-09-09 14:22:57 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-09-09 14:22:57 +0000 |
| commit | 16ad903fcf596916257acef39618545de331db8f (patch) | |
| tree | 9a363cc8bcee86006d2377422242530633a6fb9f /llvm/lib/CodeGen | |
| parent | 030867b97ef2eb95748392e531d0af9cad9de5e1 (diff) | |
| download | bcm5719-llvm-16ad903fcf596916257acef39618545de331db8f.tar.gz bcm5719-llvm-16ad903fcf596916257acef39618545de331db8f.zip | |
When widening a vector load, use the correct chain. This fixes PR4891.
llvm-svn: 81343
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp index 13f8ff7b41a..67c63b2ee72 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp @@ -1678,7 +1678,7 @@ SDValue DAGTypeLegalizer::WidenVecRes_LOAD(SDNode *N) { // Modified the chain - switch anything that used the old chain to use // the new one. - ReplaceValueWith(SDValue(N, 1), Chain); + ReplaceValueWith(SDValue(N, 1), NewChain); return Result; } |

