Files
llvm-project/llvm/lib/CodeGen/GlobalMergeFunctions.cpp
Kyungwoo Lee 8e17489026 [CGData][GMF] Preserve Profile Data (#180126)
Profile data for instructions (e.g., branch weights) is automatically
preserved via `splice()` which moves the basic blocks along with their
instruction metadata. However, entry count is stored as function
metadata, which was dropped when creating merged function and thunks.

The fix is to explicitly set entry count for both merged function (.Tgm)
and thunks via `setEntryCount()`.
2026-02-06 10:03:39 -08:00

22 KiB