diff options
Diffstat (limited to 'llvm/lib/Target/Hexagon/RDFDeadCode.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/RDFDeadCode.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/llvm/lib/Target/Hexagon/RDFDeadCode.cpp b/llvm/lib/Target/Hexagon/RDFDeadCode.cpp index 9aa8ad68e07..63177d51cad 100644 --- a/llvm/lib/Target/Hexagon/RDFDeadCode.cpp +++ b/llvm/lib/Target/Hexagon/RDFDeadCode.cpp @@ -62,19 +62,9 @@ bool DeadCodeElimination::isLiveInstr(const MachineInstr *MI) const { return true; if (MI->isPHI()) return false; - for (auto &Op : MI->operands()) { + for (auto &Op : MI->operands()) if (Op.isReg() && MRI.isReserved(Op.getReg())) return true; - if (Op.isRegMask()) { - const uint32_t *BM = Op.getRegMask(); - for (unsigned R = 0, RN = DFG.getTRI().getNumRegs(); R != RN; ++R) { - if (BM[R/32] & (1u << (R%32))) - continue; - if (MRI.isReserved(R)) - return true; - } - } - } return false; } |