Medium
-O2 versus -O3 on a hot path
Which statement about the relationship between GCC/Clang's -O2 and -O3 is accurate for the workload described here?
notes.txt
gcc -O2 hot_path.cpp -o hot_path_o2
gcc -O3 hot_path.cpp -o hot_path_o3
# hot_path.cpp contains many small, frequently-called functions and several
# loops with data-dependent trip counts, embedded in a large codebase
# that must fit comfortably in L1i cache for its hot path to run fast.26 of 44 in Compilers