Closed
Description
In Miri built with optimized and debug assertions, we have recently seen a 50% increase in CI times. Bisecting points at #120594, and @saethlin confirmed that disabling one of these UB checks gives a speedup of the same ballpark as that slowdown.
Several things could be done here:
- We could just remove this particular check.
- We could have some way to disable the checks in a particular scope.
- We could decouple "UB-checking assertions" from the general
debug_assertions
cfg-flag, similar to how overflow checks already have their own flag.
Update (2024-02-25): CI times are back to normal, now only one specific benchmark is affected.