[Hexagon] Avoid bank conflicts in post-RA scheduler
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 16 Mar 2018 20:55:49 +0000 (20:55 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Fri, 16 Mar 2018 20:55:49 +0000 (20:55 +0000)
commitf81a8d03c109558b9d322c8864660532455ac3cf
tree3e7c09ef4ff11933245f8a838019bc60336e3348
parent332a3e075fbfae36445abe3bd2140507184170cc
[Hexagon] Avoid bank conflicts in post-RA scheduler

Avoid scheduling two loads in such a way that they would end up in the
same packet. If there is a load in a packet, try to schedule a non-load
next.

Patch by Brendon Cahoon.

llvm-svn: 327742
llvm/lib/Target/Hexagon/HexagonHazardRecognizer.cpp
llvm/lib/Target/Hexagon/HexagonHazardRecognizer.h
llvm/test/CodeGen/Hexagon/bank-conflict.mir [new file with mode: 0644]