From: Uros Bizjak Date: Tue, 21 Sep 2004 05:10:54 +0000 (+0200) Subject: re PR rtl-optimization/14851 (suboptimal fp division with -ffast-math) X-Git-Tag: releases/gcc-4.0.0~4772 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79b82df36c0337afa82db85f0a65df7eaf4dd7f7;p=thirdparty%2Fgcc.git re PR rtl-optimization/14851 (suboptimal fp division with -ffast-math) PR rtl-optimization/14851 * rtlanal.c (commutative_operand_precedence): Calculate precedence of stripped constant. From-SVN: r87788 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0e22456397b1..a610a8ae07b8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-09-21 Uros Bizjak + + PR rtl-optimization/14851 + * rtlanal.c (commutative_operand_precedence): Calculate + precedence of stripped constant. + 2004-09-20 Jeff Law Jan Hubicka diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 21879d63684c..b529d76794c3 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -2980,6 +2980,7 @@ commutative_operand_precedence (rtx op) if (code == CONST_DOUBLE) return -6; op = avoid_constant_pool_reference (op); + code = GET_CODE (op); switch (GET_RTX_CLASS (code)) {