On Wed, May 27, 2020 at 10:20:18AM +0200, Richard Biener wrote: > > How about "Var(flag_cunroll_grow_size) EnabledBy(funroll-loops || > > funroll-all-loops || fpeel-loops)" Or flag_cunroll_allow_grow_size? > > > > And then using this flags as: > > unsigned int val = tree_unroll_loops_completely (flag_cunroll_grow_size > > || optimize >= 3, true); > > > > And we do not need to enable this flag at -O2. > > Sure this works for me. Note I'd make funroll-loops enabled by > funroll-all-loops so you could simplify the above.
But only do that on trunk? Segher