On 08/18/2015 10:00 PM, Jeff Law wrote:
> On 08/14/2015 10:02 PM, Mikhail Maltsev wrote:
>>
>> gcc/ChangeLog:
>>
>> 2015-08-15 Mikhail Maltsev
>>
>> * dominance.c (new_zero_array): Define.
>> (dom_info): Redefine as class with proper encapsulation.
>> (dom_info::m_n_ba
On 08/14/2015 10:02 PM, Mikhail Maltsev wrote:
On 08/14/2015 10:54 AM, Richard Biener wrote:
In fact initializing
dom_info from that would allow it to work on SESE regions as well?
Can't tell for sure. We would need a way to iterate through region's basic
blocks (I'm not familiar with that cod
On August 14, 2015 8:20:18 PM GMT+02:00, Jeff Law wrote:
>On 08/13/2015 06:55 PM, Mikhail Maltsev wrote:
>> Hi all.
>>
>> These two patches are refactoring of dominator-related code.
>>
>> The comment in dominance.c says: "We work in a poor-mans object
>oriented
>> fashion, and carry an instance o
On 08/14/2015 10:54 AM, Richard Biener wrote:
> Putting in m_fn looks backwards to me - it looks like we only need to remember
> the entry and exit BBs and the number of blocks.
Fixed.
> In fact initializing
> dom_info from that would allow it to work on SESE regions as well?
Can't tell for sur
On 08/13/2015 06:55 PM, Mikhail Maltsev wrote:
Hi all.
These two patches are refactoring of dominator-related code.
The comment in dominance.c says: "We work in a poor-mans object oriented
fashion, and carry an instance of this structure through all our 'methods'". So,
the first patch converts
On 08/14/2015 01:54 AM, Richard Biener wrote:
On Fri, Aug 14, 2015 at 2:55 AM, Mikhail Maltsev wrote:
Hi all.
These two patches are refactoring of dominator-related code.
The comment in dominance.c says: "We work in a poor-mans object oriented
fashion, and carry an instance of this structure
On Fri, Aug 14, 2015 at 2:55 AM, Mikhail Maltsev wrote:
> Hi all.
>
> These two patches are refactoring of dominator-related code.
>
> The comment in dominance.c says: "We work in a poor-mans object oriented
> fashion, and carry an instance of this structure through all our 'methods'".
> So,
> th
Hi all.
These two patches are refactoring of dominator-related code.
The comment in dominance.c says: "We work in a poor-mans object oriented
fashion, and carry an instance of this structure through all our 'methods'". So,
the first patch converts the mentioned structure (dom_info) into a class w