mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +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,10 +402,12 @@ void ScheduleDAG::EmitNode(SDNode *Node,
|
||||
DEBUG(std::cerr << "Sched: COMMUTING FAILED!\n");
|
||||
else {
|
||||
DEBUG(std::cerr << "Sched: COMMUTED TO: " << *NewMI);
|
||||
if (MI != NewMI) {
|
||||
delete MI;
|
||||
MI = NewMI;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Now that we have emitted all operands, emit this instruction itself.
|
||||
if ((II.Flags & M_USES_CUSTOM_DAG_SCHED_INSERTION) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user