htyu wrote:

> The AutoFDO support Mingming mentioned is the vtable profiling part using 
> MEM_INST_RETIRED event that captures data address. This data access profiling 
> will/can also be used for global variable layout. However this is current 
> Intel only so having a branch profiling based method can be useful overall.

@david-xl  It's interesting to know this. How is that going on your end? We've 
been using similar technique to do memcpy size optimization. We currently can 
generate a value profile that fits into the existing LBR profile format and 
consumed together by the compiler. We haven't upstreamed this work yet since we 
are still evaluating the effectiveness of the optimization. But a common 
problem here could be how to generalize the AutoFDO profile format to 
incorporate both indirect call targets, callsite parameter values and other 
types of values. Do you have a plan for that? Maybe we can work together on 
this.

https://github.com/llvm/llvm-project/pull/66825
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to