-
It looks like with the current compiler implementation,
https://developercommunity.visualstudio.com/t/Suboptimal-code-generation-for-std::unre/10071879 compiler misses the opportunity in this case. According to the compiler team's feedback, they are currently not very interested in fixing this. However, it looks like if Line 816 in febb643 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The following illustrates this ( |
Beta Was this translation helpful? Give feedback.
The following illustrates this (
foo
uses__assume(false)
,bar
usesstd::unreachable
andgood_bar
uses patchedunreachable
):https://godbolt.org/z/a9d33hc5b