[all-commits] [llvm/llvm-project] 4a2e7d: [RISCV] Teach RISCVMergeBaseOffset to handle const...
Craig Topper via All-commits
all-commits at lists.llvm.org
Tue Dec 20 07:17:15 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4a2e7da3ce3e8b6fa8d7d886be441dda42c18265
https://github.com/llvm/llvm-project/commit/4a2e7da3ce3e8b6fa8d7d886be441dda42c18265
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-12-20 (Tue, 20 Dec 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp
M llvm/test/CodeGen/RISCV/codemodel-lowering.ll
Log Message:
-----------
[RISCV] Teach RISCVMergeBaseOffset to handle constant pools.
Primarily this allows us to fold the addi from PseudoLLA expansion
into a load.
If the linker is able to GP relax the constant pool access we'll
end up with a GP relative load.
Reviewed By: asb
Differential Revision: https://reviews.llvm.org/D140341
Commit: 306adcc852c343fb01ab4189330f597ce90a1912
https://github.com/llvm/llvm-project/commit/306adcc852c343fb01ab4189330f597ce90a1912
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-12-20 (Tue, 20 Dec 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp
Log Message:
-----------
[RISCV] Reduce duplicated code in RISCVMergeBaseOffsetOpt::detectFoldable. NFC
The LUI and AUIPC share quite a few similarities. This refactors the code
to share what we can.
Reviewed By: asb
Differential Revision: https://reviews.llvm.org/D140345
Compare: https://github.com/llvm/llvm-project/compare/2aa998d22fe0...306adcc852c3
More information about the All-commits
mailing list