[PATCH] D57493: [RISCV] Put data smaller than integer type to small data section
Shiva Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 30 18:30:43 PST 2019
shiva0217 created this revision.
shiva0217 added reviewers: asb, apazos.
Herald added subscribers: jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar.
Because of gp = sdata_start_address + 0x800, gp with signed twelve bits could covert most of the small data section.
Linker relaxation could transfer the data accessing instruction to single gp base with signed twelve bits instruction.
Repository:
rL LLVM
https://reviews.llvm.org/D57493
Files:
lib/Target/RISCV/RISCVTargetObjectFile.cpp
lib/Target/RISCV/RISCVTargetObjectFile.h
test/CodeGen/RISCV/sdata.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57493.184434.patch
Type: text/x-patch
Size: 6372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190131/e97efe51/attachment.bin>
More information about the llvm-commits
mailing list