This is the mail archive of the 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: AutoFDO profile toolchain is open-sourced

On Mon, Apr 27, 2015 at 7:37 AM, Ilya Palachev <> wrote:
> Hi,
> On 21.04.2015 20:25, Dehao Chen wrote:
>> OTOH, the most important patch (insn-level discriminator support) is
>> not in yet. Cary has just retired. Do you know if anyone would be
>> interested in porting insn-level discriminator support to trunk?
> Do you mean r210338, r210397, r210523, r214745 ?


> Can you explain why these patches are important for autofdo?

Instruction level discriminator support is important to autofdo
because basic block level discriminator is not enough when
instructions are moved to other basic blocks by code motion.
Additionally, gcc backend optimization does not maintain BB level
discriminator well. We need to encode discriminator as part of LOC so
that once the discriminator is assigned to an IR, it will go all the
way to the codegen without being modified.

> What work should be done to port them to current 5 branch?

I think we just need to have these patches in. Or even better,
reimplement this the same way as my lexical block patch

> Do you expect them to be applied to 6 branch?

This should go into trunk and be there for all later gcc branches.


> --
> Ilya

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