From 79b82df36c0337afa82db85f0a65df7eaf4dd7f7 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Tue, 21 Sep 2004 07:10:54 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/rtlanal.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0e22456397b..a610a8ae07b 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 21879d63684..b529d76794c 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)) { -- 2.30.2