[llvm] [AMDGPU][StructurizeCFG] Maintain branch MD_prof metadata (PR #109813)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 09:23:27 PDT 2024


Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= <juamarti at amd.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/109813 at github.com>


================
@@ -85,7 +87,46 @@ 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>;
----------------
shiltian wrote:

```suggestion
using MaybeCondBranchWeights = std::optional<CondBranchWeights>;
```

https://github.com/llvm/llvm-project/pull/109813


More information about the llvm-commits mailing list