]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Clean up unnecesary call in resolution of overloaded expressions
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 12 Aug 2022 10:04:35 +0000 (12:04 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 7 Nov 2022 08:36:31 +0000 (09:36 +0100)
commitf073f3355643587073ce224563f509332043c381
treea5d67ad6a58684cfd8033fd7d4484e49bbc7da12
parent4e92ad48dcfdb726f72f35039c5c102a99bf7759
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.
gcc/ada/sem_res.adb