On Oct 16, 2017, at 3:16 AM, Tom de Vries <tom_devr...@mentor.com> wrote: > > I noticed gcc.dg/tree-ssa/ldist-27.c failing for nvptx due to a too large > stack size.
> OK for trunk? Hum. There is an existing mechanism (find-grep STACK_SIZE) in the tree to handle the same issue. Did you consider using it? I think I like the, trim the test case down solution better and STACK_SIZE can drive that. Maybe a tree-saa person to weigh in on the test case. But, if the optimization pass likes large things, certainly the patch is Ok.