HomePhabricator

[RISCV] Put data smaller than eight bytes to small data section

Description

[RISCV] Put data smaller than eight bytes to small data section

Because of gp = sdata_start_address + 0x800, gp with signed twelve-bit offset
could covert most of the small data section. Linker relaxation could transfer
the multiple data accessing instructions to a gp base with signed twelve-bit
offset instruction.

Differential Revision: https://reviews.llvm.org/D57493

Details

Committed
shivaApr 10 2019, 9:59 PM
Differential Revision
D57493: [RISCV] Put data smaller than eight bytes to small data section
Parents
rL358149: Prospective test fix in response to r358104.
Branches
Unknown
Tags
Unknown