[llvm] [SHT_LLVM_BB_ADDR_MAP] Fixes two bugs in decoding of PGOAnalyses in BBAddrMap. (PR #77139)
Micah Weston via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 5 18:59:43 PST 2024
================
@@ -984,10 +984,23 @@ TEST(ELFObjectFileTest, ReadPGOAnalysisMap) {
BrProb: 0xffffffff
- BBFreq: 1000
Successors: []
-)");
+ - Name: .llvm_bb_addr_map_5
+ Type: SHT_LLVM_BB_ADDR_MAP
+ # Link: 0 (by default, can be overriden)
+ Entries:
+ - Version: 2
+ Address: 0x55555
+ Feature: 0x0
+ BBEntries:
+ - ID: 2
+ AddressOffset: 0x0
+ Size: 0x2
+ Metadata: 0x4
+ PGOAnalyses: [{}]
----------------
red1bluelost wrote:
We have some where fields are missing when they should be but not one for when they are present but shouldn't. I'll make a PR for that.
https://github.com/llvm/llvm-project/pull/77139
More information about the llvm-commits
mailing list