diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-06 18:47:22 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-06 18:47:22 +0000 |
commit | c3b3a67b005e9d28ac9e9482a32ba07fbcd00e69 (patch) | |
tree | 3bc472db43edc4fff124e898c027d43fe74dd335 /gcc/cse.c | |
parent | 1a6c50b8cf8b4f3e6cf9461ab4cdf7b59e5102de (diff) | |
download | gcc-c3b3a67b005e9d28ac9e9482a32ba07fbcd00e69.tar.gz |
* cse.c (find_best_addr): Use canon_for_address.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95983 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cse.c')
-rw-r--r-- | gcc/cse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cse.c b/gcc/cse.c index 8603eac1ecf..4b9690158eb 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -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); |