[llvm] r293324 - ScheduleDAGInstrs: Do not try to toggle kill flags on debug uses

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 27 10:53:07 PST 2017


Author: matze
Date: Fri Jan 27 12:53:07 2017
New Revision: 293324

URL: http://llvm.org/viewvc/llvm-project?rev=293324&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp

Modified: llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp?rev=293324&r1=293323&r2=293324&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.cpp Fri Jan 27 12:53:07 2017
@@ -1159,6 +1159,9 @@ static void toggleBundleKillFlag(Machine
 }
 
 void ScheduleDAGInstrs::toggleKillFlag(MachineInstr &MI, MachineOperand &MO) {
+  if (MO.isDebug())
+    return;
+
   // Setting kill flag...
   if (!MO.isKill()) {
     MO.setIsKill(true);




More information about the llvm-commits mailing list