[PATCH] libstdc++: Move code after an early exit constexpr if to under an else branch
Jonathan Wakely
jwakely@redhat.com
Sat Feb 15 20:01:00 GMT 2020
On 15/02/20 11:28 -0500, Patrick Palka wrote:
>This avoids instantiating dead code when the true branch of the constexpr if is
>taken.
>
>[ diffstat generated with -w to ignore noisy whitespace changes ]
>
>libstdc++-v3/ChangeLog:
>
> * include/bits/ranges_algo.h (__lexicographical_compare_fn::operator()):
> Move code after an early exit constexpr if to under an else branch.
> * include/bits/ranges_algobase.h (__equal_fn::operator()): Likewise.
OK for master, thanks!
More information about the Libstdc++
mailing list