This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: basic_block flags, BB_VISITED


On Fri, Oct 14, 2016 at 12:57 PM, Bernd Schmidt <bschmidt@redhat.com> wrote:
> On 10/14/2016 11:26 AM, Richard Biener wrote:
>>
>> On Fri, Oct 14, 2016 at 11:15 AM, Bernd Schmidt <bschmidt@redhat.com>
>> wrote:
>>>
>>> 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.

Richard.

>
> Bernd
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]