[Patch, Fortran, OOP] PR 50960: vtables not marked as constant
Salvatore Filippone
salvatore.filippone@uniroma2.it
Wed Nov 9 14:53:00 GMT 2011
Il giorno mer, 09/11/2011 alle 15.47 +0100, Janus Weil ha scritto:
> > Thanks for the patch, but could you also add a test case? With the
> > patch, one gets the following optimized dump:
> > base ();
> > while without the patch (or in the original dump) one has:
> > x._vptr->bar ();
> > (That's for the test case to the PR, see PR 50959 comment 0.)
>
> Here is what I am going to commit.
>
> It's nice to see that this kind of "devirtualization" optimization
> actually works now. In this way the patch could really have an impact
> on OOP code performance.
>
> Would be interesting to see if we get a measurable speed-up in
> real-world code, like e.g. Salvatore's PSBLAS.
Will test asap and be back to you; I know Tobias has a copy of my code,
but it's probably a bit old, I'm going to publish an updated beta F03
release in a few days.
Salvatore
More information about the Fortran
mailing list