[all-commits] [llvm/llvm-project] 2a1100: [RISCV] Shrink the size of the RISCVMatInt::Inst.
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Dec 7 16:38:54 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2a1100cd656b1e65eba7a4a875d0be62191342b0
https://github.com/llvm/llvm-project/commit/2a1100cd656b1e65eba7a4a875d0be62191342b0
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-12-07 (Wed, 07 Dec 2022)
Changed paths:
M llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.h
Log Message:
-----------
[RISCV] Shrink the size of the RISCVMatInt::Inst.
We don't need to store a full 64-bit immediate. The largest value
used by any opcode is 20 bits.
Using an int32_t shrinks the struct from 16 bytes to 8 bytes and
reduces the size of the SmallVector that we use to store sequences
by 64 bytes.
More information about the All-commits
mailing list