[llvm] r283561 - Only track physical registers in LivePhysRegs
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 7 07:50:50 PDT 2016
Author: kparzysz
Date: Fri Oct 7 09:50:49 2016
New Revision: 283561
URL: http://llvm.org/viewvc/llvm-project?rev=283561&view=rev
Log:
Only track physical registers in LivePhysRegs
Modified:
llvm/trunk/lib/CodeGen/LivePhysRegs.cpp
Modified: llvm/trunk/lib/CodeGen/LivePhysRegs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LivePhysRegs.cpp?rev=283561&r1=283560&r2=283561&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LivePhysRegs.cpp (original)
+++ llvm/trunk/lib/CodeGen/LivePhysRegs.cpp Fri Oct 7 09:50:49 2016
@@ -49,7 +49,7 @@ void LivePhysRegs::stepBackward(const Ma
if (!O->isDef())
continue;
unsigned Reg = O->getReg();
- if (Reg == 0)
+ if (!TargetRegisterInfo::isPhysicalRegister(Reg))
continue;
removeReg(Reg);
} else if (O->isRegMask())
@@ -61,7 +61,7 @@ void LivePhysRegs::stepBackward(const Ma
if (!O->isReg() || !O->readsReg())
continue;
unsigned Reg = O->getReg();
- if (Reg == 0)
+ if (!TargetRegisterInfo::isPhysicalRegister(Reg))
continue;
addReg(Reg);
}
@@ -77,7 +77,7 @@ void LivePhysRegs::stepForward(const Mac
for (ConstMIBundleOperands O(MI); O.isValid(); ++O) {
if (O->isReg()) {
unsigned Reg = O->getReg();
- if (Reg == 0)
+ if (!TargetRegisterInfo::isPhysicalRegister(Reg))
continue;
if (O->isDef()) {
// Note, dead defs are still recorded. The caller should decide how to
More information about the llvm-commits
mailing list