llvm-project
a004c703 - [PGO] Make the PGO instrumentation insert point after alloca (#142043)

Commit
160 days ago
[PGO] Make the PGO instrumentation insert point after alloca (#142043) We're changing PGO instrumentation to insert the intrinsic after alloca instructions. For sampled instrumentation, a conditional check is placed before the intrinsic. If this intrinsic comes before an alloca, the alloca (whose size might be unknown due to Phi node) becomes conditional, resulting in inefficient code. We have seen some stack overflows due to this. This patch guarantees the intrinsic is always after the alloca.
Author
Parents
Loading