[Packetizer] Add a check whether an instruction should be packetized now
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 16 Dec 2015 16:38:16 +0000 (16:38 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 16 Dec 2015 16:38:16 +0000 (16:38 +0000)
commit8ad916fe915734219a4bfbb79fb6d6e0b424a2ae
tree3b2c76538a04e12bb3108f1b797cdd3939e3d0a1
parent2c50df66085445426c25fc537b30913821e07d8f
[Packetizer] Add a check whether an instruction should be packetized now

Add a function VLIWPacketizerList::shouldAddToPacket, which will allow
specific implementations to decide if it is profitable to add given
instruction to the current packet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255780 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/DFAPacketizer.h
lib/CodeGen/DFAPacketizer.cpp