diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2005-03-06 19:47:22 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2005-03-06 18:47:22 +0000 |
commit | 21cf294f37425bffcb4c9e06692685ff170f6f2d (patch) | |
tree | 3bc472db43edc4fff124e898c027d43fe74dd335 /gcc/cse.c | |
parent | 6731e86da047e39a92ad962e865d18322d35e529 (diff) | |
download | gcc-21cf294f37425bffcb4c9e06692685ff170f6f2d.zip gcc-21cf294f37425bffcb4c9e06692685ff170f6f2d.tar.gz gcc-21cf294f37425bffcb4c9e06692685ff170f6f2d.tar.bz2 |
* cse.c (find_best_addr): Use canon_for_address.
From-SVN: r95983
Diffstat (limited to 'gcc/cse.c')
-rw-r--r-- | gcc/cse.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2850,7 +2850,8 @@ find_best_addr (rtx insn, rtx *loc, enum machine_mode mode) be valid and produce better code. */ if (!REG_P (addr)) { - rtx folded = fold_rtx (addr, NULL_RTX); + rtx folded = canon_for_address (fold_rtx (addr, NULL_RTX)); + if (folded != addr) { int addr_folded_cost = address_cost (folded, mode); |