Skip to content

Commit

Permalink
[SDAG] Fix a result chain in ExpandUnalignedLoad
Browse files Browse the repository at this point in the history
On the code path in ExpandUnalignedLoad which expands an unaligned vector/fp
value in terms of a legal integer load of the same size, the ChainResult needs
to be the chain result of the integer load.

No in-tree test case is currently available.

Patch by Jan Hranac!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243956 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Hal Finkel committed Aug 4, 2015
1 parent 9a9814f commit 647faa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ ExpandUnalignedLoad(LoadSDNode *LD, SelectionDAG &DAG,
ISD::ANY_EXTEND, dl, VT, Result);

ValResult = Result;
ChainResult = Chain;
ChainResult = newLoad.getValue(1);
return;
}

Expand Down

0 comments on commit 647faa9

Please sign in to comment.