You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Instrumentation] Fix EdgeCounts vector size in SetBranchWeights
SetBranchWeights() calculates the size of the EdgeCounts vector
using OutEdges.Size(), but this is an under-estimate with coroutines.
Use the number of successors, as the vector will be indexed by
the result of the GetSuccessorNumber() function.
Rename the Size local, to make it clear what it refers to.
A unit test, provided by @ellishg, is included.
Fixes#97962
(regression from ffd337b)
0 commit comments