When widening a vector load, use the correct chain. This fixes PR4891.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2009-09-09 14:22:57 +00:00
parent 43b1b0e4ff
commit 607a0508ba
3 changed files with 67 additions and 1 deletions

View File

@@ -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;
}