diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2011-08-18 12:36:51 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2011-08-18 12:36:51 +0000 |
commit | d51102f3e780e69e19c6d7eeb987647e4a8aff15 (patch) | |
tree | 3787f76119cc3035cbfc30cc522d9e6e59efca62 /gcc/loop-invariant.c | |
parent | fdb4f3153312d1195d699421d43fb34ba41e6a58 (diff) | |
download | gcc-d51102f3e780e69e19c6d7eeb987647e4a8aff15.zip gcc-d51102f3e780e69e19c6d7eeb987647e4a8aff15.tar.gz gcc-d51102f3e780e69e19c6d7eeb987647e4a8aff15.tar.bz2 |
rtl.h (set_rtx_cost, [...]): New functions.
gcc/
* rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
* auto-inc-dec.c (attempt_change): Use set_rtx_cost.
* cfgloopanal.c (seq_cost): Likewise.
* loop-invariant.c (create_new_invariant): Likewise.
* postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
(reload_cse_move2add): Use get_full_set_rtx_cost.
From-SVN: r177850
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r-- | gcc/loop-invariant.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c index b9238a9..61ca446 100644 --- a/gcc/loop-invariant.c +++ b/gcc/loop-invariant.c @@ -704,7 +704,7 @@ create_new_invariant (struct def *def, rtx insn, bitmap depends_on, the loop. Otherwise we save only cost of the computation. */ if (def) { - inv->cost = rtx_cost (set, SET, speed); + inv->cost = set_rtx_cost (set, speed); /* ??? Try to determine cheapness of address computation. Unfortunately the address cost is only a relative measure, we can't really compare it with any absolute number, but only with other address costs. |