[all-commits] [llvm/llvm-project] c987f2: [PGO] Make the PGO instrumentation insert point af...
xur-llvm via All-commits
all-commits at lists.llvm.org
Fri May 30 14:01:16 PDT 2025
Branch: refs/heads/users/xur-llvm/pgowork
Home: https://github.com/llvm/llvm-project
Commit: c987f239cc1c50c26ade6633fecbcf560dc83aaf
https://github.com/llvm/llvm-project/commit/c987f239cc1c50c26ade6633fecbcf560dc83aaf
Author: Rong Xu <xur at google.com>
Date: 2025-05-30 (Fri, 30 May 2025)
Changed paths:
M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
A llvm/test/Transforms/PGOProfile/entry_alloca.ll
M llvm/test/Transforms/PGOProfile/split-indirectbr-critical-edges.ll
Log Message:
-----------
[PGO] Make the PGO instrumentation insert point after alloca
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 will be placed in the BB after entry.
In this case, the allocas will not be combined, resulting in
inefficient code. We have seen some stack overflows due to this.
This patch guarantees the intrinsic is always after the alloca.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list