summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-10-13 19:02:59 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-10-13 19:02:59 +0000
commit7c9c05888c15a5f8681a06b4aa611179aacf55fa (patch)
treebd864af2ca9a4c5f5629dd0609e751ef55d68ea2 /clang/lib/CodeGen/CodeGenModule.h
parentfd874c20ec195994e670ee7983d06ee003e7d33e (diff)
downloadbcm5719-llvm-7c9c05888c15a5f8681a06b4aa611179aacf55fa.tar.gz
bcm5719-llvm-7c9c05888c15a5f8681a06b4aa611179aacf55fa.zip
[Hexagon] Minimize number of repeated constant extenders
Each constant extender requires an extra instruction, which adds to the code size and also reduces the number of available slots in an instruction packet. In most cases, the value of a repeated constant extender could be loaded into a register, and the instructions using the extender could be replaced with their counterparts that use that register instead. This patch adds a pass that tries to reduce the number of constant extenders, including extenders which differ only in an immediate offset known at compile time, e.g. @global and @global+12. llvm-svn: 315735
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud