[Hexagon] Switch vunpackub->op->vpackeb pattern to vzb/vshuffeb
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Mon, 10 Oct 2022 22:52:38 +0000 (15:52 -0700)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Wed, 12 Oct 2022 22:31:28 +0000 (15:31 -0700)
commit79632163db51a11467530f9060e49f3b884e7140
treea75ea692e3ddae0203661af1e29398f8f3af2c12
parentb2674de375033c0c63e65f649bc501a90aa4d74e
[Hexagon] Switch vunpackub->op->vpackeb pattern to vzb/vshuffeb

V6_vzb and V6_vshuffeb can use any 2 resources in a packet, while
V6_vunpackub/V6_vpackeb both need a shift resource.

Also, add patterns for shifting vectors of i8.
llvm/lib/Target/Hexagon/HexagonPatternsHVX.td
llvm/test/CodeGen/Hexagon/autohvx/bitcount-128b.ll
llvm/test/CodeGen/Hexagon/autohvx/bitcount-64b.ll
llvm/test/CodeGen/Hexagon/autohvx/shift-128b.ll
llvm/test/CodeGen/Hexagon/autohvx/shift-64b.ll