OSDN Git Service

ScheduleDAGInstrs: Fix fixupKills() adding too many kill flags.
authorMatthias Braun <matze@braunis.de>
Tue, 27 Jun 2017 00:58:48 +0000 (00:58 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 27 Jun 2017 00:58:48 +0000 (00:58 +0000)
commitea254cbf8f0d91bfe87252021cdce6c739a33963
tree13da585cc111f26e737fa4514f1423243533407b
parent2ba26728be6739110bf1873226883567d66a3483
ScheduleDAGInstrs: Fix fixupKills() adding too many kill flags.

Remove invalid shortcut in fixupKills(): A register needs to be marked
live even when we are not adding a kill flag. This is because a
partially live register must not get a kill flags, but it still needs to
be fully marked live when walking backwards.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306352 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ScheduleDAGInstrs.cpp
test/CodeGen/AMDGPU/misched-killflags.mir [new file with mode: 0644]