summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains/Linux.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-03-23 19:47:13 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-03-23 19:47:13 +0000
commitca93f5e60515081f0314ef4e7f376af9af4eb2a7 (patch)
treef70f2a072be051aa1700f0eca61909399e6ce001 /clang/lib/Driver/ToolChains/Linux.cpp
parentac1263cd54ffaa50d692e1d99c34f16759126cae (diff)
downloadbcm5719-llvm-ca93f5e60515081f0314ef4e7f376af9af4eb2a7.tar.gz
bcm5719-llvm-ca93f5e60515081f0314ef4e7f376af9af4eb2a7.zip
[Hexagon] Assume all extendable branches to be of size 8 in relaxation
The branch relaxation pass collects sizes of all instructions at the beginning, before any changes have been made. It then performs one pass over all branches to see which ones need to be extended. It does not account for the case when a previously valid branch becomes out-of-range due to relaxing other branches. This approach fixes this problem by assuming from the beginning that all extendable branches have been extended. This may cause unneeded relaxation in some cases, but avoids iteration and recomputing instruction sizes. llvm-svn: 328360
Diffstat (limited to 'clang/lib/Driver/ToolChains/Linux.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud