summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ScheduleDAGInstrs.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-01-27 18:53:07 +0000
committerMatthias Braun <matze@braunis.de>2017-01-27 18:53:07 +0000
commit0c0aece0793bd08675757c4ce2a1501a83ec64d5 (patch)
tree412a66d3ee906d356764fac9a6b22cf79ad46899 /lib/CodeGen/ScheduleDAGInstrs.cpp
parentb162af3d1445759b9b3ac49700beec930ad4f7bc (diff)
ScheduleDAGInstrs: Do not try to toggle kill flags on debug uses
Preparation for upcoming changes. No testcase as none of the public targets bundles early enough and has a post machine scheduler enabled at the same time. The error is also easily catched by asserts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAGInstrs.cpp')
-rw-r--r--lib/CodeGen/ScheduleDAGInstrs.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/ScheduleDAGInstrs.cpp b/lib/CodeGen/ScheduleDAGInstrs.cpp
index 520a6ff7563..b5c04497fbb 100644
--- a/lib/CodeGen/ScheduleDAGInstrs.cpp
+++ b/lib/CodeGen/ScheduleDAGInstrs.cpp
@@ -1159,6 +1159,9 @@ static void toggleBundleKillFlag(MachineInstr *MI, unsigned Reg,
}
void ScheduleDAGInstrs::toggleKillFlag(MachineInstr &MI, MachineOperand &MO) {
+ if (MO.isDebug())
+ return;
+
// Setting kill flag...
if (!MO.isKill()) {
MO.setIsKill(true);