[llvm] [memprof] Add IndexedMemProfReader::getMemProfCallerCalleePairs (PR #115807)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 19:14:54 PST 2024
================
@@ -580,6 +580,68 @@ TEST_F(InstrProfTest, test_memprof_v2_partial_schema) {
EXPECT_THAT(WantRecord, EqualsRecord(Record));
}
+TEST_F(InstrProfTest, test_caller_callee_pairs) {
+ const MemInfoBlock MIB = makePartialMIB();
+
+ Writer.setMemProfVersionRequested(memprof::Version3);
----------------
kazutakahirata wrote:
That would trigger an assert, also being added in this PR:
```
IndexedMemProfReader::getMemProfCallerCalleePairs() const {
assert(MemProfRecordTable);
assert(Version == memprof::Version3);
```
https://github.com/llvm/llvm-project/pull/115807
More information about the llvm-commits
mailing list