Re: A value number issue

2021-07-29 Thread Richard Biener via Gcc
ase > I'm still kind of stuck. > > Gary > > > From: Richard Biener > Sent: Thursday, July 29, 2021 12:12 AM > To: Gary Oblock > Cc: gcc@gcc.gnu.org > Subject: Re: A value number issue > > [EXTERNAL EMAIL NOTICE: This email origina

Re: A value number issue

2021-07-29 Thread Gary Oblock via Gcc
s that kind of trick work with SSA variable creation? Thanks, I really appreciate your help even though in this case I'm still kind of stuck. Gary From: Richard Biener Sent: Thursday, July 29, 2021 12:12 AM To: Gary Oblock Cc: gcc@gcc.gnu.org Subject:

Re: A value number issue

2021-07-29 Thread Richard Biener via Gcc
e.reorg.reorder *. So what did you change in GCC? If you did not change value-numbering then you can reduce the testcase down and extract a GIMPLE frontend testcase for VN (use -fdump-tree-all-gimple and massage the GIMPLE dumped before the FRE/PRE pass that causes the issue) > Gary > &

Re: A value number issue

2021-07-28 Thread Gary Oblock via Gcc
387 > (0299), {component_ref,mem_ref<0B>,addr_expr<&net>}@.MEM_387 > (0222), {abs_expr,red_cost_of_bea_42} (0134), > {component_ref,mem_ref<0B>,addr_expr<&_reorg_base_var_node.reorg.reorder>}@.MEM_387 > (0306), > {component_ref,mem_ref<0B>,a

Re: A value number issue

2021-07-28 Thread Richard Biener via Gcc
xpr<&_reorg_base_var_node.reorg.reorder>}@.MEM_387 > (0299), {component_ref,mem_ref<0B>,addr_expr<&net>}@.MEM_387 > (0222), {abs_expr,red_cost_of_bea_42} (0134), > {component_ref,mem_ref<0B>,addr_expr<&_reorg_base_var_node.reorg.reorder>}@.MEM_3

Re: A value number issue

2021-07-22 Thread Gary Oblock via Gcc
f (red_cost_of_bea_42 > 0) goto ; [59.00%] else goto ; [41.00%] [local count: 2609125]: goto ; [100.00%] [local count: 1813121]: [local count: 4422246]: # dedangled_867 = PHI # dedangled_868 = PHI if (dedangled_867 != dedangled_868) goto ; [89.00%] else

Re: A value number issue

2021-07-22 Thread Richard Biener via Gcc
On Thu, Jul 22, 2021 at 8:06 AM Gary Oblock via Gcc wrote: > > I seem to be having a problem with the pre pass. > > When eliminate_dom_walker::eliminate_stmt is called with > the gsi to "dedangled_864 = bea_43->tail;" which in turn > calls eliminate_dom_walker::eliminate_avail op of dedangled_864.

A value number issue

2021-07-21 Thread Gary Oblock via Gcc
I seem to be having a problem with the pre pass. When eliminate_dom_walker::eliminate_stmt is called with the gsi to "dedangled_864 = bea_43->tail;" which in turn calls eliminate_dom_walker::eliminate_avail op of dedangled_864. This gives VN_INFO (lhs)->valnum of _920. The _920 is not associated w