This is the mail archive of the gcc-patches@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: [GOOGLE] Refactor the profile propagation for AutoFDO


On Mon, Nov 25, 2013 at 10:26 AM, Diego Novillo <dnovillo@google.com> wrote:
> On Mon, Nov 25, 2013 at 1:22 PM, Xinliang David Li <davidxl@google.com> wrote:
>> In this case the backedge will be a critical edge, which will be split by GCC.
>
> Right. So, if I split it, I will reach essentially the same
> conclusion, I think. The new block will get the original block's
> weight, which (in turn) will translate into the (now only outgoing)
> edge.

Why do you want to set the back edge count as the BB count? I think
the right formula is: count(back_edge) = count(BB) -
count(entry_edge), in which entry_edge is the edge that enters the
loop.

Dehao

>
>
> Diego.


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