summaryrefslogtreecommitdiff
path: root/gcc/reload.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-04-27 11:39:47 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-04-27 11:39:47 +0000
commit8c74fb06c66b569a26f93c0d569d4437fdcfd415 (patch)
treea4840b670d6361a1ddbbb4b10ca1921ee3bb7e7c /gcc/reload.h
parenta9b77cd1f72118dead00c720f1fc3348b7c5127e (diff)
downloadgcc-8c74fb06c66b569a26f93c0d569d4437fdcfd415.tar.gz
reload.h (elimination_target_reg_p): Declare.
gcc/ * reload.h (elimination_target_reg_p): Declare. * reload.c (find_reloads): Don't apply the reg_rtx move optimization if the SET_DEST satisfies elimination_target_reg_p. * reload1.c (elimination_target_reg_p): New function. (gen_reload): In the move/add2 fallback, make sure that op0 does not overlap the destination register. From-SVN: r124215
Diffstat (limited to 'gcc/reload.h')
-rw-r--r--gcc/reload.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/reload.h b/gcc/reload.h
index 6de5e8471bf..38d340fd5cd 100644
--- a/gcc/reload.h
+++ b/gcc/reload.h
@@ -342,6 +342,7 @@ extern void mark_home_live (int);
/* Scan X and replace any eliminable registers (such as fp) with a
replacement (such as sp), plus an offset. */
extern rtx eliminate_regs (rtx, enum machine_mode, rtx);
+extern bool elimination_target_reg_p (rtx);
/* Deallocate the reload register used by reload number R. */
extern void deallocate_reload_reg (int r);