forked from OSchip/llvm-project
[CodeGen] Avoid handling DBG_VALUE in LiveRegUnits::stepBackward
Patch by Jesper Antonsson. Differential Revision: https://reviews.llvm.org/D48420 llvm-svn: 335233
This commit is contained in:
parent
15745ba5c1
commit
6a3229301f
|
@ -46,7 +46,7 @@ void LiveRegUnits::stepBackward(const MachineInstr &MI) {
|
|||
// Remove defined registers and regmask kills from the set.
|
||||
for (ConstMIBundleOperands O(MI); O.isValid(); ++O) {
|
||||
if (O->isReg()) {
|
||||
if (!O->isDef())
|
||||
if (!O->isDef() || O->isDebug())
|
||||
continue;
|
||||
unsigned Reg = O->getReg();
|
||||
if (!TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||
|
@ -58,7 +58,7 @@ void LiveRegUnits::stepBackward(const MachineInstr &MI) {
|
|||
|
||||
// Add uses to the set.
|
||||
for (ConstMIBundleOperands O(MI); O.isValid(); ++O) {
|
||||
if (!O->isReg() || !O->readsReg())
|
||||
if (!O->isReg() || !O->readsReg() || O->isDebug())
|
||||
continue;
|
||||
unsigned Reg = O->getReg();
|
||||
if (!TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||
|
|
Loading…
Reference in New Issue