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

Shiva Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 1 21:40:07 PST 2019


shiva0217 updated this revision to Diff 184891.
shiva0217 retitled this revision from "[RISCV] Put data smaller than integer type to small data section" to "[RISCV] Put data smaller than eight bytes to small data section".
shiva0217 added a comment.

Correct the default small data limitation to 8 bytes for RV32 and RV64.
Setting the limitation to 0 for PIC.
The test case didn' add the testing line for PIC because we don't support pic yet, it will trigger "Unable to lowerGlobalAddress" error message.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57493/new/

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.184891.patch
Type: text/x-patch
Size: 6905 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190202/98167ad2/attachment.bin>


More information about the llvm-commits mailing list