summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshawbyoung <shawbyoung@gmail.com>2025-10-28 22:48:08 -0700
committerAmir Ayupov <aaupov@fb.com>2025-10-28 22:48:08 -0700
commit5dd720eaa3e1fbced4d6876980bb56a909753a2b (patch)
tree0198f7d4df3540e7e5639ae4739c42f0fd5f3eb1
parent57f46da05bfb216584ada918e8d197a0a5cd3ad2 (diff)
Created using spr 1.3.4
-rw-r--r--bolt/lib/Profile/StaleProfileMatching.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bolt/lib/Profile/StaleProfileMatching.cpp b/bolt/lib/Profile/StaleProfileMatching.cpp
index 344c8f366ad3..3d3d9384acc5 100644
--- a/bolt/lib/Profile/StaleProfileMatching.cpp
+++ b/bolt/lib/Profile/StaleProfileMatching.cpp
@@ -707,7 +707,8 @@ size_t matchWeights(BinaryContext &BC,
// Block index => matched block + its block profile
ProfileBlockMatchMap MatchedBlocks;
for (const auto &[RootIdx, NodeMapScale] : StartIdxNodeMap) {
- const auto &[NodeMap, Scale] = NodeMapScale;
+ ArrayRef NodeMap = NodeMapScale.first;
+ const float Scale = NodeMapScale.second;
for (const BinaryBasicBlockProfile &BB : YamlBF->Blocks) {
auto matchProbe = [&](uint32_t Node, uint64_t Id) {
if (const FlowBlock *Block = getBlock(NodeMap[Node], Id)) {