This is an archive of the discontinued LLVM Phabricator instance.

[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
into a load.

If the linker is able to GP relax the constant pool access we'll
end up with a GP relative load.

Diff Detail