[llvm] [Instrumentation] Fix EdgeCounts vector size in SetBranchWeights (PR #99064)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 19 10:27:49 PDT 2024
================
@@ -1624,7 +1624,9 @@ void PGOUseFunc::setBranchWeights() {
// We have a non-zero Branch BB.
unsigned Size = BBCountInfo.OutEdges.size();
----------------
ellishg wrote:
Could you also rename `Size` so it is more clear how it is different from `SuccessorCount`?
https://github.com/llvm/llvm-project/pull/99064
More information about the llvm-commits
mailing list