[Hexagon] Correct the computation of TopReadyCycle and BotReadyCycle of SU
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 20 Mar 2018 17:03:27 +0000 (17:03 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 20 Mar 2018 17:03:27 +0000 (17:03 +0000)
commit4c6b65f685d6ae51764f3e8a64f41d44ec40d601
tree9e230abfb20e729ff6cec752f8aadbd89ff039e0
parentfb3f509e01b8365e090fd727119125872d0ad85b
[Hexagon] Correct the computation of TopReadyCycle and BotReadyCycle of SU

TopReadyCycle and BotReadyCycle were off by one cycle when an SU is either
the first instruction or the last instruction in a packet.

Patch by Ikhlas Ajbar.

llvm-svn: 328000
llvm/lib/Target/Hexagon/HexagonMachineScheduler.cpp
llvm/test/CodeGen/Hexagon/swp-stages4.ll