From 72a64820d3d53ad0e6ba438806030b893b11ede6 Mon Sep 17 00:00:00 2001 From: Andy Ayers Date: Tue, 1 Nov 2022 13:39:52 -0700 Subject: [PATCH] JIT: increase edge weight slop tolerance some more Allow up to 1/50 variance between the expected and computed values. Fixes #77450. --- src/coreclr/jit/block.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/jit/block.h b/src/coreclr/jit/block.h index f10de256cfa00..67df48d1972c6 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/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