[Hexagon] Fix segment start to adjust for gaps between segments
authorBrendon Cahoon <bcahoon@quicinc.com>
Tue, 19 Jan 2021 18:42:29 +0000 (12:42 -0600)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Tue, 19 Jan 2021 18:49:39 +0000 (12:49 -0600)
commit57443bfb4ab06f7dc45f802119efc1068289cdd9
tree471e35dae3c443dfde1dc9703655c37aa293f63a
parent17846ed5af4a83334ef7d07f0b4a9d525e6ec0db
[Hexagon] Fix segment start to adjust for gaps between segments

The Hexagon Vector Combine pass genertes stores for a complete
aligned vector. The start of each section is a multiple of the
vector size, so that value is passed to normalize to compute
the offset of the stores in the section.  The first store may
not occur at offset 0 when there is a gap between sections.
llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
llvm/test/CodeGen/Hexagon/autohvx/vector-align-store-mask.ll [new file with mode: 0644]