[llvm] 9adc00a - [RISCV] Add a continue to reduce nesting. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 23 17:43:09 PDT 2022
Author: Craig Topper
Date: 2022-07-23T17:36:12-07:00
New Revision: 9adc00a9d0af14c64403f57b588edfe1e92c8b6b
URL: https://github.com/llvm/llvm-project/commit/9adc00a9d0af14c64403f57b588edfe1e92c8b6b
DIFF: https://github.com/llvm/llvm-project/commit/9adc00a9d0af14c64403f57b588edfe1e92c8b6b.diff
LOG: [RISCV] Add a continue to reduce nesting. NFC
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 8c39e25ccffc5..1702546b58a6e 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -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();
More information about the llvm-commits
mailing list