[Bug rtl-optimization/19705] New: [4.0 Regression] cannot turn off doloop optimization via -fno-branch-count-reg if -fno-ivopts is also supplied
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 30 05:58:00 GMT 2005
Hmm, this is werid, why cannot I turn off doloop optimization with the -fno-branch-count-reg when I
also turn off ivopts? I should be able to when I want to look at the interaction between those two
optimizations (options).
Testcase:
int foo (int x)
{
int i= x;
do {
x *= 2;
} while (--i);
return x;
}
Compile with -O2 -fno-branch-count-reg -fno-ivopts and see there still is a bdnz in there.
but compile with -O2 -fno-branch-count-reg and you don't get the bdnz.
--
Summary: [4.0 Regression] cannot turn off doloop optimization via
-fno-branch-count-reg if -fno-ivopts is also supplied
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: rtl-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-*-darwin*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19705
More information about the Gcc-bugs
mailing list