mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Just in case, handle something that is both a use and a def.
llvm-svn: 19696
This commit is contained in:
parent
2cb11bd2b9
commit
e97ed92617
@ -310,7 +310,8 @@ void LiveVariables::instructionChanged(MachineInstr *OldMI,
|
||||
// Update the defining instruction.
|
||||
if (VI.DefInst == OldMI)
|
||||
VI.DefInst = NewMI;
|
||||
} else if (MO.isUse()) {
|
||||
}
|
||||
if (MO.isUse()) {
|
||||
// If this is a kill of the value, update the VI kills list.
|
||||
if (VI.removeKill(OldMI))
|
||||
VI.Kills.push_back(NewMI); // Yes, there was a kill of it
|
||||
|
Loading…
Reference in New Issue
Block a user