aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2024-02-22 08:47:42 +0100
committerMarc Poulhiès <poulhies@adacore.com>2024-05-16 10:49:30 +0200
commit8560a0644da71f5d411ef67382a47278085bad70 (patch)
treeee289d3affa01393c1516836b0964fdea1f8fb7d /gcc/tree-vectorizer.h
parent513f6b889ab5c9fa88e82506cce7534f0400b1c6 (diff)
downloadgcc-8560a0644da71f5d411ef67382a47278085bad70.zip
gcc-8560a0644da71f5d411ef67382a47278085bad70.tar.gz
gcc-8560a0644da71f5d411ef67382a47278085bad70.tar.bz2
ada: Minor performance improvement for dynamically-allocated controlled objects
The values returned by Header_Alignment and Header_Size are known at compile time and powers of two on almost all platforms, so inlining them by means of an expression function improves the object code generated for alignment and size calculations involving them. gcc/ada/ * libgnat/s-finpri.ads: Add use type clause for Storage_Offset. (Header_Alignment): Turn into an expression function. (Header_Size): Likewise. * libgnat/s-finpri.adb: Remove use type clause for Storage_Offset. (Header_Alignment): Delete. (Header_Size): Likewise.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions