[llvm] f0e79db - [RISCV] Fix 80 columns in RISCVMatInt.cpp. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed May 15 09:28:35 PDT 2024
Author: Craig Topper
Date: 2024-05-15T09:28:11-07:00
New Revision: f0e79db215ada7316b4d4046490ab715194a519a
URL: https://github.com/llvm/llvm-project/commit/f0e79db215ada7316b4d4046490ab715194a519a
DIFF: https://github.com/llvm/llvm-project/commit/f0e79db215ada7316b4d4046490ab715194a519a.diff
LOG: [RISCV] Fix 80 columns in RISCVMatInt.cpp. NFC
Added:
Modified:
llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
index 0a304d4cb7d90..0a857eb96935e 100644
--- a/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
+++ b/llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
@@ -114,11 +114,13 @@ static void generateInstSeqImpl(int64_t Val, const MCSubtargetInfo &STI,
ShiftAmount = llvm::countr_zero((uint64_t)Val);
Val >>= ShiftAmount;
- // If the remaining bits don't fit in 12 bits, we might be able to reduce the
- // shift amount in order to use LUI which will zero the lower 12 bits.
+ // If the remaining bits don't fit in 12 bits, we might be able to reduce
+ // the // shift amount in order to use LUI which will zero the lower 12
+ // bits.
if (ShiftAmount > 12 && !isInt<12>(Val)) {
if (isInt<32>((uint64_t)Val << 12)) {
- // Reduce the shift amount and add zeros to the LSBs so it will match LUI.
+ // Reduce the shift amount and add zeros to the LSBs so it will match
+ // LUI.
ShiftAmount -= 12;
Val = (uint64_t)Val << 12;
} else if (isUInt<32>((uint64_t)Val << 12) &&
More information about the llvm-commits
mailing list