Re:C++'s `Noexcept` Can (Sometimes) Help (Or Hurt) Performance
by compiler-guy on Monday August 05, 2024 @10:55PM
(#41167439)
Yes of course. Sometimes the compiler can tell. But the original question feels to me more like “Shouldn't the compiler deduce restrict for you?”
In LTCG (MSVC)/O3 (GCC/Clang) there are prepasses over the entire callgraph to collect this order