[all-commits] [llvm/llvm-project] 1ebe06: [RISCV] Minor readability improvement to RISCVMatI...
Craig Topper via All-commits
all-commits at lists.llvm.org
Mon Jun 5 23:08:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1ebe06017df607d4fc140f6b166e35cd32fc5f16
https://github.com/llvm/llvm-project/commit/1ebe06017df607d4fc140f6b166e35cd32fc5f16
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-06-05 (Mon, 05 Jun 2023)
Changed paths:
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
Log Message:
-----------
[RISCV] Minor readability improvement to RISCVMatInt. NFC
When splitting a simm32 into LUI+ADDI(W). Subtract Lo12 from Val
to calculate Hi20. This replaces the old method of adding 0x800 to
Val. This change makes the math the reverse of how the LUI+ADDI(W)
create the immediate.
More information about the All-commits
mailing list