]> granicus.if.org Git - llvm/commit
[Hexagon] Prefer L2_loadrub_io over L4_loadrub_rr
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 2 Nov 2017 21:56:59 +0000 (21:56 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Thu, 2 Nov 2017 21:56:59 +0000 (21:56 +0000)
commitda35e5e8bec2e0110f896b4ef677445187c7ab42
treea6480b86c7ce32c304b69e6cd52b1659539598db
parentfbb50d9079f4281847a47d0aba5c29455237da63
[Hexagon] Prefer L2_loadrub_io over L4_loadrub_rr

If the offset is an immediate, avoid putting it in a register
to get Rs+Rt<<#0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317275 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonPatterns.td
test/CodeGen/Hexagon/isel-prefer.ll