HomePhabricator

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

Authored by shiva0217 on Apr 10 2019, 9:59 PM.

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

llvm-svn: 358150

Details