Skip to content

Commit

Permalink
JIT: increase edge weight slop tolerance some more
Browse files Browse the repository at this point in the history
Allow up to 1/50 variance between the expected and computed values.

Fixes dotnet#77450.
  • Loading branch information
AndyAyersMS committed Nov 1, 2022
1 parent 5333727 commit 72a6482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/jit/block.h
Original file line number Diff line number Diff line change
Expand Up @@ -1198,10 +1198,10 @@ struct BasicBlock : private LIR::Range

bool bbFallsThrough() const;

// Our slop fraction is 1/100 of the block weight.
// Our slop fraction is 1/50 of the block weight.
static weight_t GetSlopFraction(weight_t weightBlk)
{
return weightBlk / 100.0;
return weightBlk / 50.0;
}

// Given an the edge b1 -> b2, calculate the slop fraction by
Expand Down

0 comments on commit 72a6482

Please sign in to comment.