[PATCH] Enhance PHI processing in VN

2017-09-07 Thread Richard Biener
This enhances VN to do the same PHI handling as CCP, meeting undefined and constant to constant. I've gone a little bit further (and maybe will revisit this again) in also meeting all-undefined to undefined taking one of the undefined args as the value number. I feel like this might run into the

Re: [PATCH] Enhance PHI processing in VN

2017-09-07 Thread Richard Biener
On Thu, 7 Sep 2017, Richard Biener wrote: > > This enhances VN to do the same PHI handling as CCP, meeting > undefined and constant to constant. I've gone a little bit > further (and maybe will revisit this again) in also meeting > all-undefined to undefined taking one of the undefined args > as

Re: [PATCH] Enhance PHI processing in VN

2017-09-14 Thread Richard Biener
On Thu, 7 Sep 2017, Richard Biener wrote: > On Thu, 7 Sep 2017, Richard Biener wrote: > > > > > This enhances VN to do the same PHI handling as CCP, meeting > > undefined and constant to constant. I've gone a little bit > > further (and maybe will revisit this again) in also meeting > > all-und

Re: [PATCH] Enhance PHI processing in VN

2017-09-14 Thread David Edelsohn
* tree-ssa-sccvn.c (visit_phi): Merge undefined values similar to VN_TOP. This seems to have regressed FAIL: gcc.dg/tree-prof/time-profiler-2.c scan-ipa-dump-times profile "Read tp_first_run: 0" 2 FAIL: gcc.dg/tree-prof/time-profiler-2.c scan-ipa-dump-times profile "Read tp_first_run: 2" 1 FAIL:

Re: [PATCH] Enhance PHI processing in VN

2017-09-14 Thread Richard Biener
On Thu, 14 Sep 2017, David Edelsohn wrote: > * tree-ssa-sccvn.c (visit_phi): Merge undefined values similar > to VN_TOP. > > This seems to have regressed > > FAIL: gcc.dg/tree-prof/time-profiler-2.c scan-ipa-dump-times profile > "Read tp_first_run: 0" 2 > FAIL: gcc.dg/tree-prof/time-profiler-2.c

Re: [PATCH] Enhance PHI processing in VN

2017-09-15 Thread David Edelsohn
On Fri, Sep 15, 2017 at 2:53 AM, Richard Biener wrote: > On Thu, 14 Sep 2017, David Edelsohn wrote: > >> * tree-ssa-sccvn.c (visit_phi): Merge undefined values similar >> to VN_TOP. >> >> This seems to have regressed >> >> FAIL: gcc.dg/tree-prof/time-profiler-2.c scan-ipa-dump-times profile >> "Re

Re: [PATCH] Enhance PHI processing in VN

2017-09-27 Thread Richard Sandiford
David Edelsohn writes: > On Fri, Sep 15, 2017 at 2:53 AM, Richard Biener wrote: >> On Thu, 14 Sep 2017, David Edelsohn wrote: >> >>> * tree-ssa-sccvn.c (visit_phi): Merge undefined values similar >>> to VN_TOP. >>> >>> This seems to have regressed >>> >>> FAIL: gcc.dg/tree-prof/time-profiler-2.c

Re: [PATCH] Enhance PHI processing in VN

2017-09-27 Thread David Edelsohn
On Wed, Sep 27, 2017 at 6:58 PM, Richard Sandiford wrote: > David Edelsohn writes: >> On Fri, Sep 15, 2017 at 2:53 AM, Richard Biener wrote: >>> On Thu, 14 Sep 2017, David Edelsohn wrote: >>> * tree-ssa-sccvn.c (visit_phi): Merge undefined values similar to VN_TOP. This seems

Re: [PATCH] Enhance PHI processing in VN

2017-09-28 Thread Richard Sandiford
David Edelsohn writes: > On Wed, Sep 27, 2017 at 6:58 PM, Richard Sandiford > wrote: >> David Edelsohn writes: >>> On Fri, Sep 15, 2017 at 2:53 AM, Richard Biener wrote: On Thu, 14 Sep 2017, David Edelsohn wrote: > * tree-ssa-sccvn.c (visit_phi): Merge undefined values similar >>>