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/PostRASchedulerList.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/PostRASchedulerList.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PostRASchedulerList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp index f6eaa92eaa2..f2249f9e37e 100644 --- a/llvm/lib/CodeGen/PostRASchedulerList.cpp +++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp @@ -367,7 +367,7 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) { Scheduler.finishBlock(); // Update register kills - Scheduler.fixupKills(&MBB); + Scheduler.fixupKills(MBB); } return true; |