[PATCH, 4/8] Add pass_tree_loop_{init,done} to pass_oacc_kernels

Richard Biener rguenther@suse.de
Wed Jun 3 11:26:00 GMT 2015


On Tue, 2 Jun 2015, Tom de Vries wrote:

> On 02-06-15 15:58, Richard Biener wrote:
> > Btw, I wonder why you don't organize the oacc-kernel passes in
> > a new simple-IPA group after pass_local_optimization_passes.
> 
> I've placed the pass group as early as possible (meaning after ealias) and put
> passes in front only when that served a purpose for parallelization
> (pass_fre). The idea there was to minimize the amount of passes that have to
> be modified to deal (conservatively) with a kernels region.

I see.

> So AFAICT, there's nothing against placing the pass group after
> pass_local_optimization_passes, other that that it's more work in more passes
> to keep the region intact.
> 
> What would be the benefit of doing so?

Get all the local optimizations done, including pure-const discovery.

Richard.

-- 
Richard Biener <rguenther@suse.de>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nuernberg)



More information about the Gcc-patches mailing list