[Hexagon] Remove incorrect pattern for swiz
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 1 Oct 2018 18:24:40 +0000 (18:24 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Mon, 1 Oct 2018 18:24:40 +0000 (18:24 +0000)
commit6d569a2cc46e41e0c6d951904fff70f7141f9c0a
treec623ce802d6619762817b42fe0351f2337508165
parent54ff0df2dce2d658392f754214637033e5f7b5cc
[Hexagon] Remove incorrect pattern for swiz

The pattern had a couple of problems:
- It was checking for loads of bytes in the reverse order to what it
  should have been looking for.
- It would replace loads of bytes with a load of a word without making
  sure that the alignment was correct.

Thanks to Eli Friedman for pointing it out.

llvm-svn: 343514
llvm/lib/Target/Hexagon/HexagonPatterns.td
llvm/test/CodeGen/Hexagon/swiz.ll [deleted file]