title: Why C++ compilers have many optimization levels
body: <p>I was just thinking why C++ compilers have many optimization levels like O1, O2 etc. Why can everything be part of just one optimization level O. </p>
  
  <p>I tried search online a lot but didn't got a convincing answer for this.</p>