[ORC] Add early-out to OL_applyQueryPhase1.
authorLang Hames <lhames@gmail.com>
Tue, 14 Dec 2021 07:30:24 +0000 (18:30 +1100)
committerLang Hames <lhames@gmail.com>
Tue, 14 Dec 2021 23:01:02 +0000 (10:01 +1100)
commit3ce1e9428b96339c516da926657f830bfb4d4c9a
treea8fc20df2b75c57787c755c94d220be12aa1a914
parent71e5488a195dde08a76e923814e036c68033869f
[ORC] Add early-out to OL_applyQueryPhase1.

If all symbols in a lookup match before we reach the end of the search order
then bail out of the search-order loop early.

This should reduce unnecessary contention on the session lock and improve
readability of the debug logs.
llvm/lib/ExecutionEngine/Orc/Core.cpp