Loop unrolling behaviour in GCC
问题 This question is in part a follow up question to GCC 5.1 Loop unrolling. According to the GCC documentation, and as stated in my answer to the above question, flags such as -funroll-loops turn on "complete loop peeling (i.e. complete removal of loops with a small constant number of iterations)" . Therefore, when such a flag is enabled, the compiler can choose to unroll a loop if it determines that this would optimise the execution of a given piece of code. Nevertheless, I noticed in one of my