aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-11-02 14:17:47 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-11-02 14:17:47 +0000
commitf070544f8e2269eb94610d13484f471b3b4fe19d (patch)
tree20246abcd20505a6a167c99611da1c5fb496fdd4 /clang/lib/Frontend/CompilerInvocation.cpp
parent86746bd1a8048cbb4c288248a86f7e48a6dcbdde (diff)
downloadllvm-f070544f8e2269eb94610d13484f471b3b4fe19d.zip
llvm-f070544f8e2269eb94610d13484f471b3b4fe19d.tar.gz
llvm-f070544f8e2269eb94610d13484f471b3b4fe19d.tar.bz2
[Hexagon] Do not reduce load size for globals in small-data
Small-data (i.e. GP-relative) loads and stores allow 16-bit scaled offset. For a load of a value of type T, the small-data area is equivalent to an array "T sdata[65536]". This implies that objects of smaller sizes need to be closer to the beginning of sdata, while larger objects may be farther away, or otherwise the offset may be insufficient to reach it. Similarly, an object of a larger size should not be accessed via a load of a smaller size. llvm-svn: 345975
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions