[PATCH v8 23/24] c++: Implement __is_invocable built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::is_invocable. gcc/cp/ChangeLog: * cp-trait.def: Define __is_invocable. * constraint.cc (diagnose_trait_expr): Handle CPTK_IS_INVOCABLE. * semantics.cc (trait_expr_value): Likewise. (finish_trait_expr): Likewise.

[PATCH v8 24/24] libstdc++: Optimize std::is_invocable compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_invocable by dispatching to the new __is_invocable built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_invocable): Use __is_invocable built-in trait. * testsuite/20_util/is_invocable/incomplete_a

Re: [PATCH RFA] build: drop target libs from LD_LIBRARY_PATH [PR105688]

2024-02-19 Thread Alexandre Oliva
On Feb 16, 2024, Jason Merrill wrote: > So, for stage2+, let's add just prev- libgcc. I'm pretty sure this will break bootstrap-lean where libgcc_s isn't a system library, and we're building post-bootstrap host tools :-( We need the current stage lib after the prev stage is removed. I also dou

Re: [PATCH] RISC-V: Fix CTZ unnecessary sign extension [PR #106888]

2024-02-19 Thread Jeff Law
On 2/19/24 21:26, Alexandre Oliva wrote: This backport for gcc-13 is required for pr90838.c to get the expected count of andi instructions on riscv64-elf, rather than fail because of two extra andi insns in functions where it is not necessary. (On riscv32-elf, it passes). Regstrapped on x86_

Re: [PATCH] ipa: Convert lattices from pure array to vector (PR 113476)

2024-02-19 Thread Richard Biener
On Mon, 19 Feb 2024, Martin Jambor wrote: > On Tue, Feb 13 2024, Martin Jambor wrote: > > On Mon, Feb 12 2024, Jan Hubicka wrote: > >>> Believe it or not, even though I have re-worked the internals of the > >>> lattices completely, the array itself is older than my involvement with > >>> GCC (or a

Re: GCN RDNA2+ vs. GCC SLP vectorizer

2024-02-19 Thread Richard Biener
On Mon, 19 Feb 2024, Thomas Schwinge wrote: > Hi! > > On 2024-02-19T17:31:20+0100, I wrote: > > On 2024-02-19T11:52:55+0100, Richard Biener wrote: > >> On Mon, 19 Feb 2024, Thomas Schwinge wrote: > >>> On 2024-02-16T14:53:04+0100, I wrote: > >>> > On 2024-02-16T12:41:06+, Andrew Stubbs wrot

<    1   2