Skip to content

Commit

Permalink
ScheduleDAGInstrs: Do not try to toggle kill flags on debug uses
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MatzeB committed Jan 27, 2017
1 parent b162af3 commit 0c0aece
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/CodeGen/ScheduleDAGInstrs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0c0aece

Please sign in to comment.