Re:Orthodox C++
by gmueckl on Tuesday December 29, 2020 @01:27AM
(#25567317)
There are instances where I can get current GCC to generate less instructions as part of the normal control flow when adding noexcept declarations. This is quite surprising given the common claim that exceptions shouldn't affect that. Unfortunately, I think I lost the example where I could reproduce it in the Compiler Explorer.
[ Parent
| on HN ]
How convenient
I reproduced it:
test() with exceptions enabled is two instructions longer in the normal code path.