diff options
| author | Oskar Wirga <oskar.wirga@gmail.com> | 2024-04-10 15:37:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-10 15:37:27 -0700 |
| commit | a9d4ddd98a0bc495126027122fdca751b6841ceb (patch) | |
| tree | ff9feb6411d442e0d83bee882fca741e2dd4ae55 /llvm/test/Bitcode/thinlto-function-summary-callgraph-sample-profile-summary.ll | |
| parent | d8f1e5d2894f7f4edc2e85e63def456c7f430f34 (diff) | |
| download | llvm-a9d4ddd98a0bc495126027122fdca751b6841ceb.zip llvm-a9d4ddd98a0bc495126027122fdca751b6841ceb.tar.gz llvm-a9d4ddd98a0bc495126027122fdca751b6841ceb.tar.bz2 | |
[MergeFuncs/CFI] Ensure all type metadata is propogated for CFI (#88218)
I noticed that we weren't propagating ALL type metadata that was
attached to CFI functions:
# BEFORE
```
; Function Attrs: minsize nounwind optsize ssp uwtable(sync)
define internal void @foo(ptr nocapture noundef readonly %0) #0 !dbg !62311 !type !34028 !type !34029 !type !34030
... fn merging
; Function Attrs: minsize nounwind optsize ssp uwtable(sync)
define internal void @foo(ptr nocapture noundef readonly %0) #0 !type !34028
```
# AFTER
```
; Function Attrs: minsize nounwind optsize ssp uwtable(sync)
define internal void @foo(ptr nocapture noundef readonly %0) #0 !dbg !62311 !type !34028 !type !34029 !type !34030
... fn merging
; Function Attrs: minsize nounwind optsize ssp uwtable(sync)
define internal void @foo(ptr nocapture noundef readonly %0) #0 !type !type !34028 !type !34029 !type !34030
```
This patch makes sure that the entire vector of metadata is copied over.
Diffstat (limited to 'llvm/test/Bitcode/thinlto-function-summary-callgraph-sample-profile-summary.ll')
0 files changed, 0 insertions, 0 deletions
