[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
Evan Cheng
evan.cheng at apple.com
Wed May 31 11:03:53 PDT 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
ScheduleDAG.cpp updated: 1.94 -> 1.95
---
Log message:
commuteInstruction() does not always create a new MI!
---
Diffs of the changes: (+4 -2)
ScheduleDAG.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.94 llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.95
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.94 Wed May 31 02:13:03 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Wed May 31 13:03:39 2006
@@ -402,8 +402,10 @@
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;
+ }
}
}
More information about the llvm-commits
mailing list