wenlei added a comment.

There's also subtle difference between different variants of PGO. For 
instrumentation PGO where profile quality is higher, profile counts always take 
precedence. But for sampling PGO (AutoFDO, CSSPGO), it tries to not overwrite 
any existing branch weights, which means the weights derived from hints earlier 
are honored. But there's count smoothing algorithm that try to make make CFG 
counts consistent, which may occasionally overwrite some branch weights that 
seem really off based on surround count/flow.

The current default looks more like a hint rather than a directive..


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134456/new/

https://reviews.llvm.org/D134456

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to