Recently, I used GCC to compile a program, but when I used -O1 optimization option, it went wrong; there was no problem when using -O0. So I replaced the -O1 with those options as the official documentation said, such as -fauto-inc-dec, -fcompare-elim, -fcprop-registers, etc.
However, it works fine without any bug but the performance is not very good.
I want to know whether -O1 is equivalent to those little compilation options?