[llvm] Implements PGOBBAddrMap in Object and ObjectYAML with tests [1/5] (PR #71750)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 12:00:21 PST 2023
================
@@ -849,18 +850,24 @@ TEST(ELFObjectFileTest, InvalidDecodePGOBBAddrMap) {
AddressOffset: 0x2
Size: 0x1
Metadata: 0x2
- - ID: 4
- AddressOffset: 0x3
- Size: 0x1
- Metadata: 0x2
+ PGOAnalyses:
+ - PGOBBEntries:
+ - Successors:
+ - ID: 2
+ BrProb: 0x80000000
+ - ID: 3
+ BrProb: 0x80000000
+ - Successors:
+ - ID: 3
+ BrProb: 0xF0000000
)";
- DoCheck(MissingBrProb, "unable to decode LEB128 at offset 0x0000001b: "
+ DoCheck(MissingBrProb, "unable to decode LEB128 at offset 0x00000017: "
"malformed uleb128, extends past end");
}
-// Test for the ELFObjectFile::readPGOBBAddrMap API.
-TEST(ELFObjectFileTest, ReadPGOBBAddrMap) {
+// Test for the ELFObjectFile::readBBAddrMap API with PGOAnalysisMap
----------------
jh7370 wrote:
Nit.
```suggestion
// Test for the ELFObjectFile::readBBAddrMap API with PGOAnalysisMap.
```
https://github.com/llvm/llvm-project/pull/71750
More information about the llvm-commits
mailing list