[PATCH] D24118: [JumpThreading] Only write back branch-weight MDs for blocks that originally had PGO info

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 1 14:58:06 PDT 2016

anemet added a comment.

In https://reviews.llvm.org/D24118#531735, @davidxl wrote:

> Can you show me an example of
> "The profile data seems odd. There is a single profile sample of the
>  loop being entered. On the other hand, there are no weights inside the
>  loop."
> I want to know what is going on? Are your using FE PGO or IR PGO?

It's FE-based.

The CFG of the function with the branch weights from the IR looks like this: https://reviews.llvm.org/F2391730.  I believe the IR was produced with -disable-llvm-optzns.

I can also send you the PGO data file privately if you're interested.


More information about the llvm-commits mailing list