Re: [RFC] Modeling the behavior of function calls

2008-04-30 Thread Marc Glisse
On Mon, 28 Apr 2008, Diego Novillo wrote: We have been bouncing ideas for a new mechanism to describe the behavior of function calls so that optimizers can be more aggressive at call sites. Currently, GCC supports the notion of pure/impure, const/non-const, but that is not enough for variou

Re: [RFC] Modeling the behavior of function calls

2008-04-29 Thread Andrew Pinski
On Tue, Apr 29, 2008 at 10:59 AM, Diego Novillo <[EMAIL PROTECTED]> wrote: > On 4/29/08 1:31 PM, Joe Buck wrote: > > > > Such a facility can have other uses, particularly for static analysis, > > by allowing simple preconditions and postconditions to be specified. > > For example: > > > > * a retur

Re: [RFC] Modeling the behavior of function calls

2008-04-29 Thread Diego Novillo
On 4/29/08 1:31 PM, Joe Buck wrote: Such a facility can have other uses, particularly for static analysis, by allowing simple preconditions and postconditions to be specified. For example: * a returned pointer is guaranteed to be non-null. * a supplied pointer is always dereferenced. * a suppli

Re: [RFC] Modeling the behavior of function calls

2008-04-29 Thread Joe Buck
On Mon, Apr 28, 2008 at 03:04:56PM -0400, Diego Novillo wrote: > [ Apologies if this comes out twice. I posted this message last week, >but I think it was rejected because of a .pdf attachment. ] > > We have been bouncing ideas for a new mechanism to describe the behavior > of function calls

Re: [RFC] Modeling the behavior of function calls

2008-04-28 Thread Tobias Burnus
Diego Novillo wrote: We have been bouncing ideas for a new mechanism to describe the behavior of function calls so that optimizers can be more aggressive at call sites. Currently, GCC supports the notion of pure/impure, const/non-const, but that is not enough for various cases. Fortran support

Re: [RFC] Modeling the behavior of function calls

2008-04-28 Thread Chris Lattner
On Apr 28, 2008, at 12:04 PM, Diego Novillo wrote: [ Apologies if this comes out twice. I posted this message last week, but I think it was rejected because of a .pdf attachment. ] We have been bouncing ideas for a new mechanism to describe the behavior of function calls so that optimize

Re: [RFC] Modeling the behavior of function calls

2008-04-28 Thread David Daney
Diego Novillo wrote: [ Apologies if this comes out twice. I posted this message last week, but I think it was rejected because of a .pdf attachment. ] We have been bouncing ideas for a new mechanism to describe the behavior of function calls so that optimizers can be more aggressive at call

Re: [RFC] Modeling the behavior of function calls

2008-04-28 Thread Daniel Berlin
On Mon, Apr 28, 2008 at 3:04 PM, Diego Novillo <[EMAIL PROTECTED]> wrote: > [ Apologies if this comes out twice. I posted this message last week, >but I think it was rejected because of a .pdf attachment. ] > > We have been bouncing ideas for a new mechanism to describe the behavior > of fun