aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_util.ads
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-08-12 12:04:35 +0200
committerMarc Poulhiès <poulhies@adacore.com>2022-11-07 09:36:31 +0100
commitf073f3355643587073ce224563f509332043c381 (patch)
treea5d67ad6a58684cfd8033fd7d4484e49bbc7da12 /gcc/ada/sem_util.ads
parent4e92ad48dcfdb726f72f35039c5c102a99bf7759 (diff)
downloadgcc-f073f3355643587073ce224563f509332043c381.zip
gcc-f073f3355643587073ce224563f509332043c381.tar.gz
gcc-f073f3355643587073ce224563f509332043c381.tar.bz2
ada: Clean up unnecesary call in resolution of overloaded expressions
When experimentally enabling frontend inlining by default, the unnecessary call to Comes_From_Predefined_Lib_Unit in Resolve appears to be a performance bottleneck (most likely this call is expensive because it involves a loop over the currently inlined subprograms). Code cleanup; semantics is unaffected. gcc/ada/ * sem_res.adb (Resolve): Only call Comes_From_Predefined_Lib_Unit when its result might be needed.
Diffstat (limited to 'gcc/ada/sem_util.ads')
0 files changed, 0 insertions, 0 deletions