On Fri, Oct 14, 2016 at 12:57 PM, Bernd Schmidt <bschm...@redhat.com> wrote:
> On 10/14/2016 11:26 AM, Richard Biener wrote:
>> On Fri, Oct 14, 2016 at 11:15 AM, Bernd Schmidt <bschm...@redhat.com>
>>> So maybe it should just call clear_bb_flags instead of doing the loop
>>> itself? Ok if that works.
>> That doesn't generally work, it clears too many flags (it was appearantly
>> designed for RTL).
> Or maybe it could be argued that more tree-specific flags ought to be in
> BB_FLAGS_TO_PRESERVE, or that it would make more sense to define a more
> specific BB_FLAGS_TO_KEEP.
> So maybe just change the loop at the end of evrp, it clearly wants to clean
> up after itself so just make it do it reliably.
I thought about adding an argument to clear_bb_flags telling it the
flags to clear.