[all-commits] [llvm/llvm-project] 6d4d01: [llvm-extract] Delete dead `CG Profile` edges (#13...
Mircea Trofin via All-commits
all-commits at lists.llvm.org
Wed Apr 9 10:36:34 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6d4d017fd250b77e832bec37644f3446d0be6d6c
https://github.com/llvm/llvm-project/commit/6d4d017fd250b77e832bec37644f3446d0be6d6c
Author: Mircea Trofin <mtrofin at google.com>
Date: 2025-04-09 (Wed, 09 Apr 2025)
Changed paths:
M llvm/include/llvm/Transforms/IPO/StripSymbols.h
M llvm/lib/Passes/PassRegistry.def
M llvm/lib/Transforms/IPO/StripSymbols.cpp
A llvm/test/Transforms/StripSymbols/strip-cg-profile.ll
M llvm/tools/llvm-extract/llvm-extract.cpp
Log Message:
-----------
[llvm-extract] Delete dead `CG Profile` edges (#134940)
When `llvm-extract`-ing a function, and the `CG Profile` flag is present in the original module, we end up with lots of `!{null, null, i64 1234}` entries for call edges that have disappeared as result of the removed functions.
This patch fixes that by adding a pass to `llvm-extract` that finds `CG Profile` edges with one or both operands `null` and removes them. This results in a cleaner output.
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