diff options
author | Matthias Braun <matze@braunis.de> | 2017-05-27 02:50:50 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2017-05-27 02:50:50 +0000 |
commit | 868bbd40226d6bd9d909e3ae3645e580ff9e2352 (patch) | |
tree | 307207e1ad554c853e58b949df40165a72b0b498 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 0bb3bcd0ef969bd3a3fb37826a0f8645d2795b96 (diff) | |
download | bcm5719-llvm-868bbd40226d6bd9d909e3ae3645e580ff9e2352.tar.gz bcm5719-llvm-868bbd40226d6bd9d909e3ae3645e580ff9e2352.zip |
ScheduleDAGInstrs: Fix fixupKills()
Rewrite fixupKills() to use the LivePhysRegs class. Simplifies the code
and fixes a bug where the CSR registers in return blocks where missed
leading to invalid kill flags. Also remove the unnecessary rule that we
wouldn't set kill flags on tied operands.
No tests as I have an upcoming commit improving MachineVerifier checks
to catch these cases in multiple existing lit tests.
llvm-svn: 304055
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineScheduler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index dbc9d01d7d5..edc3783afa2 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -532,7 +532,7 @@ void MachineSchedulerBase::scheduleRegions(ScheduleDAGInstrs &Scheduler, // thumb2 size reduction is currently an exception, so the PostMIScheduler // needs to do this. if (FixKillFlags) - Scheduler.fixupKills(&*MBB); + Scheduler.fixupKills(*MBB); } Scheduler.finalizeSchedule(); } |