Re:But I was helping the compiler
by tylerhou on Friday August 21, 2020 @03:59PM
(#24238336)
I should maybe rephrase [1] to: if you're deciding between two different ways of writing the same function for performance reasons, you should use the optimized assembly output to decide (or the same compiler flags as what you use in production). There can be big differences between the unoptimized and optimized code: https://godbolt.org/z/fszhjj.
Unoptimized assembly IS useful if you just want to learn or understand assembly itself.
Unoptimized assembly IS useful if you just want to learn or understand assembly itself.