On Tue, May 14, 2013 at 12:16:07PM +0200, Richard Biener wrote: > > The loop was previously containing EDGE_ABNORMAL edges (that is something > > to prevent any optimizations on those until ompexp had a chance to deal with > > those), so there is no loop at all, just the loop->num == 0 for the whole > > function if #pragma omp simd appears outside of loops and doesn't contain > > any loops inside of its body. > > But don't we now know the loop (it's header and possibly its latch) > and so we can simply add_loop here?
Ah, add_loop, I was looking for something like that but didn't find it. I see you've added add_loop for other places in omp-low.c, this spot was just on gomp-4_0-branch and not on the trunk, will see if I can use it. > > Will try. > > Might not be trivial - the dependency whould have to be of "known" > type and the distance vector maybe safelen+1 (which would be > not exactly correct I think, but there isn't sth like "at least" > safelen+1). So eventually it needs to be an "unknown" dependency > still with a new interface of a "at least" distance result. I guess I'll start with all other points then... Jakub