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.

llvm-svn: 293324
This commit is contained in:
Matthias Braun 2017-01-27 18:53:07 +00:00
parent 26e8c350f9
commit c91e28af4b
1 changed files with 3 additions and 0 deletions

View File

@ -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);