[PATCH] D156734: [BOLT] Fixing macOS build
Sergey Pupyrev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 31 13:56:18 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG299ec3c22a3b: [BOLT] Fixing macOS build (authored by spupyrev).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156734/new/
https://reviews.llvm.org/D156734
Files:
bolt/lib/Passes/ReorderFunctions.cpp
Index: bolt/lib/Passes/ReorderFunctions.cpp
===================================================================
--- bolt/lib/Passes/ReorderFunctions.cpp
+++ bolt/lib/Passes/ReorderFunctions.cpp
@@ -340,7 +340,8 @@
applyCDSLayout(FuncSizes, FuncCounts, CallCounts, CallOffsets);
// Create a single cluster from the computed order of hot functions.
- Clusters.emplace_back(Cluster(Result, Cg));
+ std::vector<CallGraph::NodeId> NodeOrder(Result.begin(), Result.end());
+ Clusters.emplace_back(Cluster(NodeOrder, Cg));
} break;
case RT_PETTIS_HANSEN:
Clusters = pettisAndHansen(Cg);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156734.545797.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230731/520947f5/attachment.bin>
More information about the llvm-commits
mailing list