[Hexagon] Use MachineOperand::readsReg instead of isUse

llvm-svn: 274381
This commit is contained in:
Krzysztof Parzyszek 2016-07-01 20:28:30 +00:00
parent 7f8827576c
commit a17250d8e0
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ void HexagonExpandCondsets::updateKillFlags(unsigned Reg) {
// Set the <kill> flag on a use of Reg whose lane mask is contained in LM. // Set the <kill> flag on a use of Reg whose lane mask is contained in LM.
MachineInstr *MI = LIS->getInstructionFromIndex(K); MachineInstr *MI = LIS->getInstructionFromIndex(K);
for (auto &Op : MI->operands()) { for (auto &Op : MI->operands()) {
if (!Op.isReg() || !Op.isUse() || Op.getReg() != Reg) if (!Op.isReg() || !Op.readsReg() || Op.getReg() != Reg)
continue; continue;
LaneBitmask SLM = getLaneMask(Reg, Op.getSubReg()); LaneBitmask SLM = getLaneMask(Reg, Op.getSubReg());
if ((SLM & LM) == SLM) { if ((SLM & LM) == SLM) {