Skip to content
  • Sebastian Graf's avatar
    Break recursion in GHC.Float.roundingMode# (#20352) · 2d151752
    Sebastian Graf authored and Marge Bot's avatar Marge Bot committed
    Judging from the Assumption, we should never call `roundingMode#` on a negative
    number. Yet the strange "dummy" conversion from `IN` to `IP` and the following
    recursive call where making the function recursive.
    
    Replacing the call by a panic makes `roundingMode#` non-recursive, so that we
    may be able to inline it.
    
    Fixes #20352.
    
    It seems we trigger #19414 on some jobs, hence
    
    Metric Decrease:
        T12545
    2d151752