forked from OSchip/llvm-project
[Hexagon] Use MachineOperand::readsReg instead of isUse
llvm-svn: 274381
This commit is contained in:
parent
7f8827576c
commit
a17250d8e0
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue