[Hexagon] Reconsider getMask fix, return original mask, convert later
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Sat, 12 Dec 2020 19:19:36 +0000 (13:19 -0600)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Sat, 12 Dec 2020 19:27:22 +0000 (13:27 -0600)
commitbaf931a8427dc29532aa42460604f23bf9a39708
tree0c110e8d6fb6902746233b45f1be954585728bff
parent7beee561e23db56c7e24462a9870a3ba58a9b2b3
[Hexagon] Reconsider getMask fix, return original mask, convert later

The getPayload/getMask/getPassThrough functions should return values
that could be composed into a masked load/store without any additional
type casts. The previous fix violated that.
Instead, convert scalar mask to a vector right before rescaling.
llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp