You can make up a conditional to do so: https://stackoverflow.com/a/26195434
It's always unclear whether the optimizer will be able to make use of that, but I'm pretty sure that (as long as the conditional expression is obviously side-effect-free) the optimizer will remove the conditional if its body is just assume_unreachable.
@koakuma
Ah, sorry, s/conditional with assume_unreachable inside/conditional with (un)likely around the condition with empty body/