[Hexagon] Ensure proper ordering of instructions in HVC::AlignVectors
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Fri, 17 Mar 2023 14:01:16 +0000 (07:01 -0700)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Fri, 17 Mar 2023 15:13:49 +0000 (08:13 -0700)
commit0eac3c500406ad3a18a8c2829f71403056c6042f
tree2d1f279bd683fe3cee1c9e5b0038bef2a063caaa
parent5a94669fc68f298f42609c909f9c0dbaa4fbaae7
[Hexagon] Ensure proper ordering of instructions in HVC::AlignVectors

The shuffle reduction creates a dependency chain. Make sure that the
inputs to the next instruction are placed ahead of the instruction itself.
llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
llvm/test/CodeGen/Hexagon/autohvx/vector-align-order.ll [new file with mode: 0644]