mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 15:11:39 +00:00
commuteInstruction() does not always create a new MI!
llvm-svn: 28592
This commit is contained in:
parent
ee54532a92
commit
5b6029f577
@ -402,8 +402,10 @@ void ScheduleDAG::EmitNode(SDNode *Node,
|
||||
DEBUG(std::cerr << "Sched: COMMUTING FAILED!\n");
|
||||
else {
|
||||
DEBUG(std::cerr << "Sched: COMMUTED TO: " << *NewMI);
|
||||
delete MI;
|
||||
MI = NewMI;
|
||||
if (MI != NewMI) {
|
||||
delete MI;
|
||||
MI = NewMI;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user