Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Instrumentation] Fix EdgeCounts vector size in SetBranchWeights #99064

Merged

Commits on Aug 18, 2024

  1. [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 llvm#97962
    
    (regression from ffd337b)
    avikivity committed Aug 18, 2024
    Configuration menu
    Copy the full SHA
    82ed77d View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. Configuration menu
    Copy the full SHA
    94fff2d View commit details
    Browse the repository at this point in the history