re PR rtl-optimization/14851 (suboptimal fp division with -ffast-math)
authorUros Bizjak <uros@kss-loka.si>
Tue, 21 Sep 2004 05:10:54 +0000 (07:10 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 21 Sep 2004 05:10:54 +0000 (07:10 +0200)
        PR rtl-optimization/14851
        * rtlanal.c (commutative_operand_precedence): Calculate
        precedence of stripped constant.

From-SVN: r87788

gcc/ChangeLog
gcc/rtlanal.c

index 0e22456397b1271def2335a392677974e63bb99e..a610a8ae07b8593e8889565db0aa6b3c1ec00a12 100644 (file)
@@ -1,3 +1,9 @@
+2004-09-21  Uros Bizjak  <uros@kss-loka.si>
+
+       PR rtl-optimization/14851
+       * rtlanal.c (commutative_operand_precedence): Calculate
+       precedence of stripped constant.
+
 2004-09-20 Jeff Law  <law@redhat.com>
            Jan Hubicka  <jh@suse.cz>
 
index 21879d63684cfdeb149e45ee7047e471dbcc8dc8..b529d76794c39ddc8b0fb228f2e31d7ffc14a616 100644 (file)
@@ -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))
     {