Re: Overhaul middle-end handling of restrict

2013-11-25 Thread Michael Matz
Hi, On Fri, 22 Nov 2013, Xinliang David Li wrote: > > Apart from the issue that LTO drops all BLOCKs this makes the middle-end > > feature too much tied to the C family frontends and their definition > > of restrict. It also requires BLOCK lookup / matching at the time > > of the alias query (wh

Re: Overhaul middle-end handling of restrict

2013-11-25 Thread Richard Biener
On Fri, 22 Nov 2013, Xinliang David Li wrote: > On Fri, Nov 22, 2013 at 2:19 AM, Richard Biener wrote: > > On Thu, 21 Nov 2013, Xinliang David Li wrote: > > > >> On Thu, Nov 21, 2013 at 10:03 AM, Michael Matz wrote: > >> > Hello, > >> > > >> > after much pondering about the issue we came up with

Re: Overhaul middle-end handling of restrict

2013-11-25 Thread Richard Biener
On Thu, 21 Nov 2013, Michael Matz wrote: > Hello, > > after much pondering about the issue we came up with this design to > handle restrict more generally. Without a completely different way of > representing conflicts (or non-conflicts) of memory references we're bound > to somehow encode th

Re: Overhaul middle-end handling of restrict

2013-11-22 Thread Tobias Burnus
Michael Matz wrote: after much pondering about the issue we came up with this design to handle restrict more generally. Cool! Thanks for the last-minute patch. If I understand the patch correctly, it does handle the problem of inlining restrict pointers correctly – which was previously a mis

Re: Overhaul middle-end handling of restrict

2013-11-22 Thread Xinliang David Li
On Fri, Nov 22, 2013 at 2:19 AM, Richard Biener wrote: > On Thu, 21 Nov 2013, Xinliang David Li wrote: > >> On Thu, Nov 21, 2013 at 10:03 AM, Michael Matz wrote: >> > Hello, >> > >> > after much pondering about the issue we came up with this design to >> > handle restrict more generally. Without

Re: Overhaul middle-end handling of restrict

2013-11-22 Thread Richard Biener
On Thu, 21 Nov 2013, Xinliang David Li wrote: > On Thu, Nov 21, 2013 at 10:03 AM, Michael Matz wrote: > > Hello, > > > > after much pondering about the issue we came up with this design to > > handle restrict more generally. Without a completely different way of > > representing conflicts (or no

Re: Overhaul middle-end handling of restrict

2013-11-21 Thread Xinliang David Li
On Thu, Nov 21, 2013 at 10:03 AM, Michael Matz wrote: > Hello, > > after much pondering about the issue we came up with this design to > handle restrict more generally. Without a completely different way of > representing conflicts (or non-conflicts) of memory references we're bound > to somehow

Re: Overhaul middle-end handling of restrict

2013-11-21 Thread David Edelsohn
Michael, Thanks for working to improve this feature. I think that testing on a few more targets would be advisable because other targets may expose problems caused by the effects of optimizations exposed by better "restrict" implementation. Thanks, David

Overhaul middle-end handling of restrict

2013-11-21 Thread Michael Matz
Hello, after much pondering about the issue we came up with this design to handle restrict more generally. Without a completely different way of representing conflicts (or non-conflicts) of memory references we're bound to somehow encode the necessary information into the points-to set (or in