Wei Wang
1ae179b325
[SampleProfileMatcher] Fix backward matching of non-anchor locations ( #190118 )
...
The backward matching loop in `matchNonCallsiteLocs` was ineffective
because `InsertMatching` used `std::unordered_map::insert()` which does
not overwrite existing entries. Since forward matching already inserted
entries for all non-anchor locations, the backward matching for the
second half was silently ignored.
The backward matching can update forward mappings in
`IRToProfileLocationMap` in 2 ways:
- The IR location maps a new different profile location. Change
`insert()` to `insert_or_assign()` so that entry overwrite can happen.
- The IR location maps the same profile location. Add `erase()` to
remove such mapping.
2026-04-06 15:21:31 -07:00
..
2026-04-06 15:21:31 -07:00
2025-10-24 18:49:45 +08:00
2026-01-08 13:55:24 -08:00
2025-08-08 11:09:34 +02:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2026-01-13 13:22:20 +00:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-08-08 11:09:34 +02:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-08-08 11:09:34 +02:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2025-09-01 08:31:40 +08:00
2026-01-08 16:19:35 -08:00
2025-09-01 08:31:40 +08:00
2025-09-01 08:31:40 +08:00
2025-09-01 08:31:40 +08:00
2025-10-24 18:49:45 +08:00
2026-01-20 14:57:38 +08:00
2026-03-31 16:27:58 -07:00
2026-02-24 12:52:17 -08:00
2025-10-24 18:49:45 +08:00
2025-09-01 08:31:40 +08:00
2025-09-01 08:31:40 +08:00
2025-09-01 08:31:40 +08:00
2025-09-01 08:31:40 +08:00
2025-10-24 18:49:45 +08:00
2025-09-01 08:31:40 +08:00
2025-09-01 08:31:40 +08:00
2025-09-01 08:31:40 +08:00
2025-08-08 11:09:34 +02:00
2025-09-01 08:31:40 +08:00
2025-09-01 08:31:40 +08:00
2026-04-06 15:21:31 -07:00
2026-03-09 21:21:35 -07:00
2026-03-09 21:21:59 -07:00
2025-09-01 08:31:40 +08:00
2025-09-01 08:31:40 +08:00
2025-09-01 08:31:40 +08:00
2025-08-08 11:09:34 +02:00
2025-09-01 08:31:40 +08:00
2026-04-03 11:38:51 -07:00
2025-09-01 08:31:40 +08:00
2026-03-25 11:20:51 -07:00
2025-09-01 08:31:40 +08:00
2025-09-01 08:31:40 +08:00
2025-10-24 18:49:45 +08:00
2025-10-24 18:49:45 +08:00
2026-03-12 14:53:57 -07:00