[Bug middle-end/107661] [13 Regression] lambdas get merged incorrectly in tempaltes, cause llvm-12 miscompilation since r13-3358-ge0403e95689af7

2022-11-21 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107661 --- Comment #14 from Martin Jambor --- (In reply to Sergei Trofimovich from comment #13) > It seems to have something to do with > push_agg_values_from_edge()/push_agg_values_for_index_from_edge() behaviour > of filtering self-recursive lattice

[Bug middle-end/107661] [13 Regression] lambdas get merged incorrectly in tempaltes, cause llvm-12 miscompilation since r13-3358-ge0403e95689af7

2022-11-20 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107661 --- Comment #13 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #12) > Testing the following: > > --- a/gcc/ipa-cp.cc > +++ b/gcc/ipa-cp.cc > @@ -5869,37 +5869,37 @@ cgraph_edge_brings_all_scalars_for_node (struct >

[Bug middle-end/107661] [13 Regression] lambdas get merged incorrectly in tempaltes, cause llvm-12 miscompilation since r13-3358-ge0403e95689af7

2022-11-19 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107661 --- Comment #12 from Sergei Trofimovich --- Testing the following: --- a/gcc/ipa-cp.cc +++ b/gcc/ipa-cp.cc @@ -5869,37 +5869,37 @@ cgraph_edge_brings_all_scalars_for_node (struct cgraph_edge *cs, /* Determine whether CS also brings all

[Bug middle-end/107661] [13 Regression] lambdas get merged incorrectly in tempaltes, cause llvm-12 miscompilation since r13-3358-ge0403e95689af7

2022-11-19 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107661 --- Comment #11 from Sergei Trofimovich --- I think I found the bug: r13-3358-ge0403e95689af7 cgraph_edge_brings_all_agg_vals_for_node() accidentally changed behaviour of the predicate: - before the change: ipa-cp triggers when constrop

[Bug middle-end/107661] [13 Regression] lambdas get merged incorrectly in tempaltes, cause llvm-12 miscompilation since r13-3358-ge0403e95689af7

2022-11-18 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107661 --- Comment #10 from Sergei Trofimovich --- I think ipa-cp adds the call edge info in wrong direction. a.cc.081i.cp snippet around do3() param1 (our callback): IPA lattices after all propagation: Lattices: ... Node: void

[Bug middle-end/107661] [13 Regression] lambdas get merged incorrectly in tempaltes, cause llvm-12 miscompilation since r13-3358-ge0403e95689af7

2022-11-18 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107661 Sergei Trofimovich changed: What|Removed |Added Attachment #53888|0 |1 is obsolete|

[Bug middle-end/107661] [13 Regression] lambdas get merged incorrectly in tempaltes, cause llvm-12 miscompilation since r13-3358-ge0403e95689af7

2022-11-18 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107661 --- Comment #8 from Sergei Trofimovich --- (In reply to Sergei Trofimovich from comment #7) > When debug reports unqualified `Aggregate replacements: 1[0]=callback_fn` > does it mean ipa-cp does not distinguish between: > * static void

[Bug middle-end/107661] [13 Regression] lambdas get merged incorrectly in tempaltes, cause llvm-12 miscompilation since r13-3358-ge0403e95689af7

2022-11-15 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107661 --- Comment #7 from Sergei Trofimovich --- Looking -fdump-ipa-cp-all I see the following clone ``` IPA decision stage: Evaluating opportunities for static void function_ref::callback_fn(void*) [with Callable =

[Bug middle-end/107661] [13 Regression] lambdas get merged incorrectly in tempaltes, cause llvm-12 miscompilation since r13-3358-ge0403e95689af7

2022-11-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107661 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[Bug middle-end/107661] [13 Regression] lambdas get merged incorrectly in tempaltes, cause llvm-12 miscompilation since r13-3358-ge0403e95689af7

2022-11-13 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107661 Martin Jambor changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Ever confirmed|0

[Bug middle-end/107661] [13 Regression] lambdas get merged incorrectly in tempaltes, cause llvm-12 miscompilation since r13-3358-ge0403e95689af7

2022-11-13 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107661 Sergei Trofimovich changed: What|Removed |Added Summary|[13 Regression] lambdas get |[13 Regression] lambdas get