Re: Problems with GGC and bitmap/hash_set

2019-01-18 Thread Michael Ploujnikov
On 2019-01-18 3:45 a.m., Richard Biener wrote: > On Thu, Jan 17, 2019 at 8:16 PM Michael Ploujnikov > wrote: >> >> Hi, >> >> I've been doing some investigations that required using a bitmap to keep >> track of decl IDs and I ran into segmentation fault a

Problems with GGC and bitmap/hash_set

2019-01-17 Thread Michael Ploujnikov
to keep track of ids: typedef int_hash unsigned_int_hasher; static GTY(()) hash_set *all_ids; But I couldn't figure out how to write the required gt_ggc_mx and gt_pch_nx methods. Any help would be greatly appreciated! - Michael From 6b410e862017a677095ae094244c87ca1bbe72fd Mon Sep 17 00:00

Re: LTO Test Case Help

2018-12-06 Thread Michael Ploujnikov
On 2018-12-05 2:38 p.m., Michael Ploujnikov wrote: > Hi, > > I'm trying to write a testcase to reproduce duplicate clone symbols > such as in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88297 I > started with a testcase that is known to have constprop clones and > split i

LTO Test Case Help

2018-12-05 Thread Michael Ploujnikov
Hi, I'm trying to write a testcase to reproduce duplicate clone symbols such as in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88297 I started with a testcase that is known to have constprop clones and split it into two object files: bash-4.2# cat /gcc/src/gcc/testsuite/gcc.dg/lto/independent-c

Re: Understanding tree_swap_operands_p wrt SSA name versions

2018-07-16 Thread Michael Ploujnikov
On 2018-07-16 04:30 AM, Richard Biener wrote: > On Mon, Jul 16, 2018 at 12:19 AM Michael Ploujnikov > wrote: >> >> On 2018-07-04 04:52 AM, Richard Biener wrote: >>> On Tue, Jul 3, 2018 at 9:09 PM Jeff Law wrote: >>>> >>>> On 07/03/2018 11:55 A

Re: Understanding tree_swap_operands_p wrt SSA name versions

2018-07-15 Thread Michael Ploujnikov
On 2018-07-04 04:52 AM, Richard Biener wrote: > On Tue, Jul 3, 2018 at 9:09 PM Jeff Law wrote: >> >> On 07/03/2018 11:55 AM, Michael Ploujnikov wrote: >>> On 2018-07-03 12:46 PM, Richard Biener wrote: >>>> On July 3, 2018 4:56:57 PM GMT+02:00, Michael Ploujnik

Re: Understanding tree_swap_operands_p wrt SSA name versions

2018-07-03 Thread Michael Ploujnikov
On 2018-07-03 12:46 PM, Richard Biener wrote: > On July 3, 2018 4:56:57 PM GMT+02:00, Michael Ploujnikov > wrote: >> On 2018-06-20 04:23 AM, Richard Biener wrote: >>> On Wed, Jun 20, 2018 at 7:31 AM Jeff Law wrote: >>>> >>>> On 06/19/2018 12:30 PM

Re: Understanding tree_swap_operands_p wrt SSA name versions

2018-07-03 Thread Michael Ploujnikov
On 2018-06-20 04:23 AM, Richard Biener wrote: > On Wed, Jun 20, 2018 at 7:31 AM Jeff Law wrote: >> >> On 06/19/2018 12:30 PM, Michael Ploujnikov wrote: >>> Hi everyone, >>> >>> (I hope this is the right place to ask, if not my apologies; please >&g

Understanding tree_swap_operands_p wrt SSA name versions

2018-06-19 Thread Michael Ploujnikov
Hi everyone, (I hope this is the right place to ask, if not my apologies; please point me in the right direction) I'm trying to get a better understanding of the following part in tree_swap_operands_p(): /* It is preferable to swap two SSA_NAME to ensure a canonical form for commutative a