Re:Going Faster by Duplicating Code
by wycy on Wednesday October 11, 2023 @07:41AM
(#37843261)
Using -O3 was resulting in correctness problems in my work codebase in the past. Nowadays the compiler (ifort) crashes when using -O3 for some reason.
[ Parent
| on HN ]
> Using -O3 was resulting in correctness problems
Likely because your codebase had UB in it that didn't show itself until a certain optimization level. The solution is to fix all instances of UB. See my comment above.