1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[A57FPLoadBalancing] Ignore <def>s when checking if a chain may be killed.

Defs are seen before uses, so a def without the kill flag doesn't necessarily
mean that the register is not killed on that instruction. It may be killed
in a later use operand.

llvm-svn: 217689
This commit is contained in:
James Molloy 2014-09-12 16:55:26 +00:00
parent 6655e823e0
commit 95dc4092ea

View File

@ -662,6 +662,10 @@ maybeKillChain(MachineOperand &MO, unsigned Idx,
// determine if a chain should be ended and remove from ActiveChains.
MachineInstr *MI = MO.getParent();
if (MO.isReg() && MO.isDef())
// We don't care about defs. We see them before uses, so reject them early.
return;
if (MO.isReg()) {
// If this is a KILL of a current chain, record it.