[llvm] InstrProfiling.cpp: Let lowerIntrinsics() able to insert BBs. (PR #95585)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 18 11:06:09 PDT 2024
ellishg wrote:
IRPGO profiles will only match if the CFG of the instrumented function is the same as the CFG of optimized function. For this reason, the instrumentation should not change the CFG of the function.
If you want a conditional store, you might want to consider creating a new function and calling it. You might even be able to force it to be inlined. If the CFG of the assembly changes, that is ok. We just want the CFG of the IR to stay the same.
https://github.com/llvm/llvm-project/pull/95585
More information about the llvm-commits
mailing list