[llvm] [AMDGPU][StructurizeCFG] Maintain branch MD_prof metadata (PR #109813)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 03:04:39 PDT 2024
================
@@ -85,7 +86,43 @@ using PhiMap = MapVector<PHINode *, BBValueVector>;
using BB2BBVecMap = MapVector<BasicBlock *, BBVector>;
using BBPhiMap = DenseMap<BasicBlock *, PhiMap>;
-using BBPredicates = DenseMap<BasicBlock *, Value *>;
+
+using MaybeCondBranchWeights = std::optional<class CondBranchWeights>;
+
+class CondBranchWeights {
----------------
arsenm wrote:
Kind of weird this would be defined here, maybe later should just move it to ProfDataUtils (which could use some modernization)
https://github.com/llvm/llvm-project/pull/109813
More information about the llvm-commits
mailing list