diff options
author | Hal Finkel <hfinkel@anl.gov> | 2015-08-04 06:29:12 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2015-08-04 06:29:12 +0000 |
commit | caf1149b8b7801efdd329cdd6e158d8c862e56a6 (patch) | |
tree | acd8910afec71f0b701cedba6688488031163ab8 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | 87011187920266bdec81a52ad24768f46b479fb0 (diff) | |
download | bcm5719-llvm-caf1149b8b7801efdd329cdd6e158d8c862e56a6.tar.gz bcm5719-llvm-caf1149b8b7801efdd329cdd6e158d8c862e56a6.zip |
[SDAG] Fix a result chain in ExpandUnalignedLoad
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!
llvm-svn: 243956
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index a253faa9760..79efa2433ea 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -439,7 +439,7 @@ ExpandUnalignedLoad(LoadSDNode *LD, SelectionDAG &DAG, ISD::ANY_EXTEND, dl, VT, Result); ValResult = Result; - ChainResult = Chain; + ChainResult = newLoad.getValue(1); return; } |