On Mon, Aug 17, 2009 at 2:38 AM, ami_stuff<ami_st...@o2.pl> wrote: > Hi, > > I found out that when I use "-fno-unswitch-loops" option, it have no effect - > loops are unswitched anyway: > > -O3 -fno-unswitch-loops > > Because of that to avoid -funswitch-loops optimization I must use something > like this: > > -O2 -finline-functions -fpredictive-commoning -fgcse-after-reload > -ftree-vectorize > > Is that a bug?
Works fine for me. gcc.dg/tree-ssa/loop-6.c is unswitched with -O3 but not with -O3 -fno-unswitch-loops. You have to be more specific. Maybe PRE or if-conversion perform the "unswichting" for you. Richard. > Tested with GCC 4.4.1 (m68k). > > Regards > >