[llvm] 2c9983f - [RISCV][NFC] Add braces to 'else' to match braced 'if'
Fraser Cormack via llvm-commits
llvm-commits at lists.llvm.org
Thu May 26 02:11:24 PDT 2022
Author: Fraser Cormack
Date: 2022-05-26T10:00:33+01:00
New Revision: 2c9983f530512ce5be99b53c8cd895f1d2a3a04a
URL: https://github.com/llvm/llvm-project/commit/2c9983f530512ce5be99b53c8cd895f1d2a3a04a
DIFF: https://github.com/llvm/llvm-project/commit/2c9983f530512ce5be99b53c8cd895f1d2a3a04a.diff
LOG: [RISCV][NFC] Add braces to 'else' to match braced 'if'
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index 2fc29d0d067b..0ee92d3bb20b 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -613,8 +613,9 @@ static VSETVLIInfo computeInfoForInstr(const MachineInstr &MI, uint64_t TSFlags,
} else {
InstrInfo.setAVLReg(VLOp.getReg());
}
- } else
+ } else {
InstrInfo.setAVLReg(RISCV::NoRegister);
+ }
InstrInfo.setVTYPE(VLMul, SEW, TailAgnostic, MaskAgnostic, MaskRegOp, StoreOp,
ScalarMovOp);
More information about the llvm-commits
mailing list