Re: GCC's ICF vs. gold's ICF

2019-01-22 Thread Martin Liška
On 1/15/19 4:49 PM, Richard Biener wrote: > On Tue, Jan 15, 2019 at 4:43 PM Frank Tetzel > wrote: >> why is the ICF pass in gcc not folding member functions which depend on a template parameter but happen to generate identical code? Is it because it is not identical on the IR level

Re: GCC's ICF vs. gold's ICF

2019-01-15 Thread Richard Biener
On Tue, Jan 15, 2019 at 4:43 PM Frank Tetzel wrote: > > > > why is the ICF pass in gcc not folding member functions which > > > depend on a template parameter but happen to generate identical > > > code? Is it because it is not identical on the IR level in the > > > compiler? Can I somehow dump th

Re: GCC's ICF vs. gold's ICF

2019-01-15 Thread Frank Tetzel
> > why is the ICF pass in gcc not folding member functions which > > depend on a template parameter but happen to generate identical > > code? Is it because it is not identical on the IR level in the > > compiler? Can I somehow dump the IR in text form? > > You can look at the ICF dump generate

Re: GCC's ICF vs. gold's ICF

2019-01-15 Thread Richard Biener
On Tue, Jan 15, 2019 at 2:18 PM Frank Tetzel wrote: > > Hi, > > why is the ICF pass in gcc not folding member functions which depend on > a template parameter but happen to generate identical code? > Is it because it is not identical on the IR level in the compiler? > Can I somehow dump the IR in