tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of expensive operations.
authorDavid Edelsohn <edelsohn@gnu.org>
Thu, 31 Mar 2005 16:01:53 +0000 (16:01 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Thu, 31 Mar 2005 16:01:53 +0000 (11:01 -0500)
* tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
expensive operations.

From-SVN: r97330

gcc/ChangeLog
gcc/tree-ssa-loop-im.c

index c651077ce6f34b6675a829a6688b40ecc1259c77..41224f436af866c07580868bb52af96fa8b8cd59 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-31  David Edelsohn  <edelsohn@gnu.org>
+
+       * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
+       expensive operations.
+
 2005-03-31  Ian Lance Taylor  <ian@airs.com>
 
        * collect2.c (lderrout): New variable.
index 51ada3d8056b7cde2db36665e2e3fe6e48633029..98bc76babd47237e2485c955db848bbb6dd62404 100644 (file)
@@ -436,6 +436,7 @@ stmt_cost (tree stmt)
     case FLOOR_MOD_EXPR:
     case ROUND_MOD_EXPR:
     case TRUNC_MOD_EXPR:
+    case RDIV_EXPR:
       /* Division and multiplication are usually expensive.  */
       cost += 20;
       break;