[all-commits] [llvm/llvm-project] 7192c2: [GlobalISel][RISCV] Use constant pool for large in...
Mikhail Gudim via All-commits
all-commits at lists.llvm.org
Fri Feb 9 21:42:44 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7192c22ee43500b1a6313d1ade38e002463944a6
https://github.com/llvm/llvm-project/commit/7192c22ee43500b1a6313d1ade38e002463944a6
Author: Mikhail Gudim <mgudim at gmail.com>
Date: 2024-02-10 (Sat, 10 Feb 2024)
Changed paths:
M llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
M llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h
M llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-bitreverse-rv64.mir
M llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-const-rv64.mir
Log Message:
-----------
[GlobalISel][RISCV] Use constant pool for large integer constants. (#81101)
We apply custom lowering to 64 bit constants where we use the same logic
as in non-global isel: if materializing in registers is too expensive,
we emit a load from constant pool. Later, during instruction selection,
constant pool address is generated using `selectAddr`.
More information about the All-commits
mailing list