diff options
author | Andy Ayers <andya@microsoft.com> | 2022-09-30 18:18:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 18:18:57 +0300 |
commit | 3b425f9513312fb79701de970454ae9eed481ef8 (patch) | |
tree | 7f0d67b8fb8fb80ba544542aa5de82022c4a7679 /src | |
parent | d6f4ee110dde598759ea12222d4fd2db8ea00f80 (diff) |
JIT: increase slop tolerance when computing edge weights (#76409)
Up the tolerance a bit to get past some jit stress errors we're seeing.
Fixes the main case in #74169.
Diffstat (limited to 'src')
-rw-r--r-- | src/coreclr/jit/block.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coreclr/jit/block.h b/src/coreclr/jit/block.h index 53c2064292c..f10de256cfa 100644 --- a/src/coreclr/jit/block.h +++ b/src/coreclr/jit/block.h @@ -1198,10 +1198,10 @@ struct BasicBlock : private LIR::Range bool bbFallsThrough() const; - // Our slop fraction is 1/128 of the block weight rounded off + // Our slop fraction is 1/100 of the block weight. static weight_t GetSlopFraction(weight_t weightBlk) { - return ((weightBlk + 64) / 128); + return weightBlk / 100.0; } // Given an the edge b1 -> b2, calculate the slop fraction by |