forked from OSchip/llvm-project
[RISCV] Add a continue to reduce nesting. NFC
This commit is contained in:
parent
944cb96429
commit
9adc00a9d0
|
@ -10072,15 +10072,15 @@ static MachineBasicBlock *emitSelectPseudo(MachineInstr &MI,
|
|||
LastSelectPseudo = &*SequenceMBBI;
|
||||
SequenceMBBI->collectDebugValues(SelectDebugValues);
|
||||
SelectDests.insert(SequenceMBBI->getOperand(0).getReg());
|
||||
} else {
|
||||
if (SequenceMBBI->hasUnmodeledSideEffects() ||
|
||||
SequenceMBBI->mayLoadOrStore())
|
||||
break;
|
||||
if (llvm::any_of(SequenceMBBI->operands(), [&](MachineOperand &MO) {
|
||||
return MO.isReg() && MO.isUse() && SelectDests.count(MO.getReg());
|
||||
}))
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
if (SequenceMBBI->hasUnmodeledSideEffects() ||
|
||||
SequenceMBBI->mayLoadOrStore())
|
||||
break;
|
||||
if (llvm::any_of(SequenceMBBI->operands(), [&](MachineOperand &MO) {
|
||||
return MO.isReg() && MO.isUse() && SelectDests.count(MO.getReg());
|
||||
}))
|
||||
break;
|
||||
}
|
||||
|
||||
const RISCVInstrInfo &TII = *Subtarget.getInstrInfo();
|
||||
|
|
Loading…
Reference in New Issue