diff options
author | Luke Lau <luke@igalia.com> | 2024-04-17 20:24:59 +0800 |
---|---|---|
committer | Luke Lau <luke@igalia.com> | 2024-04-17 20:26:02 +0800 |
commit | 4536ad47579d8d61f372ab85128bcfaed58a1256 (patch) | |
tree | f4253330e58102bcb84340fec0bf5a78bd4b689b | |
parent | 37b26bf48b9894ed0c13fd1aede23472660fb75e (diff) | |
download | llvm-4536ad47579d8d61f372ab85128bcfaed58a1256.zip llvm-4536ad47579d8d61f372ab85128bcfaed58a1256.tar.gz llvm-4536ad47579d8d61f372ab85128bcfaed58a1256.tar.bz2 |
[RISCV] Fix clang-tidy warning about else after return. NFC
-rw-r--r-- | llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp index 6e45f0c..aab91ad 100644 --- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp +++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp @@ -1551,7 +1551,9 @@ void RISCVInsertVSETVLI::doLocalPostpass(MachineBasicBlock &MBB) { ToDelete.push_back(&MI); // Leave NextMI unchanged continue; - } else if (canMutatePriorConfig(MI, *NextMI, Used, *MRI)) { + } + + if (canMutatePriorConfig(MI, *NextMI, Used, *MRI)) { if (!isVLPreservingConfig(*NextMI)) { MI.getOperand(0).setReg(NextMI->getOperand(0).getReg()); MI.getOperand(0).setIsDead(false); |