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.
Paths
| Differential D140341
[RISCV] Teach RISCVMergeBaseOffset to handle constant pools. ClosedPublic Authored by craig.topper on Dec 19 2022, 12:47 PM.
Details Summary Primarily this allows us to fold the addi from PseudoLLA expansion If the linker is able to GP relax the constant pool access we'll
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 20 2022, 1:55 AM Closed by commit rG4a2e7da3ce3e: [RISCV] Teach RISCVMergeBaseOffset to handle constant pools. (authored by craig.topper). · Explain WhyDec 20 2022, 7:17 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 484043 llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp
llvm/test/CodeGen/RISCV/codemodel-lowering.ll
|
clang-format not found in user’s local PATH; not linting file.