libstdc++: Move code after an early exit constexpr if to under an else branch
authorPatrick Palka <ppalka@redhat.com>
Sat, 15 Feb 2020 15:59:36 +0000 (10:59 -0500)
committerPatrick Palka <ppalka@redhat.com>
Sun, 16 Feb 2020 02:16:00 +0000 (21:16 -0500)
commit93b8cfce27abe795f56ab467570f66682e9688ca
treee561e2a497da923af4b95c45884bbe585edc2caa
parente19c49e0dab1345684813a7e7e1e80fc21c38cf9
libstdc++: Move code after an early exit constexpr if to under an else branch

This avoids instantiating dead code when the true branch of the constexpr if is
taken.

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.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/ranges_algo.h
libstdc++-v3/include/bits/ranges_algobase.h