mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 05:35:11 +00:00
commuteInstruction() does not always create a new MI!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28592 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8874aaef1d
commit
4c6f2f9e92
@ -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…
Reference in New Issue
Block a user