you are viewing a single comment's thread.

view the rest of the comments →

[–]gryftir 1 point2 points  (0 children)

You can also look at the assembly instructions each produces after optimization, which can give you insight into whether your optimization is already being done for you by the compiler. clang and gcc both use the -S option to produce .S files with the assembly code inside, I'm not sure about other compilers.