diff options
| author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-09-08 17:42:14 +0000 |
|---|---|---|
| committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-09-08 17:42:14 +0000 |
| commit | a696b1b64179bdbad1176eaf549be8661d83fa1d (patch) | |
| tree | 07ee028aecd4e3247bf4e1a9ce03956774e09823 /llvm/lib | |
| parent | be90f70d3abb5c56ca6d38438b8db4aa480328d9 (diff) | |
| download | bcm5719-llvm-a696b1b64179bdbad1176eaf549be8661d83fa1d.tar.gz bcm5719-llvm-a696b1b64179bdbad1176eaf549be8661d83fa1d.zip | |
[Hexagon] Expand sext- and zextloads of vector types, not just extloads
Recent change exposed this issue, breaking the Hexagon buildbots.
llvm-svn: 280973
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonISelLowering.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp index 8e113b954fd..34f553a7dd6 100644 --- a/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp +++ b/llvm/lib/Target/Hexagon/HexagonISelLowering.cpp @@ -1968,9 +1968,13 @@ HexagonTargetLowering::HexagonTargetLowering(const TargetMachine &TM, for (unsigned VectExpOp : VectExpOps) setOperationAction(VectExpOp, VT, Expand); - // Expand all extended loads and truncating stores: + // Expand all extending loads and truncating stores: for (MVT TargetVT : MVT::vector_valuetypes()) { + if (TargetVT == VT) + continue; setLoadExtAction(ISD::EXTLOAD, TargetVT, VT, Expand); + setLoadExtAction(ISD::ZEXTLOAD, TargetVT, VT, Expand); + setLoadExtAction(ISD::SEXTLOAD, TargetVT, VT, Expand); setTruncStoreAction(VT, TargetVT, Expand); } |

