aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorSeongbae Park <seongbae.park@gmail.com>2007-06-12 01:11:03 +0000
committerSeongbae Park <spark@gcc.gnu.org>2007-06-12 01:11:03 +0000
commit46cc214143093bae401dd148b00b6d0330b7af4b (patch)
tree0932cf88fd441dcf5a8e84a89c9bb0e64d67c9cf /gcc/combine.c
parentb1db1d9b261fdefef230b71ccb14a76c7024882b (diff)
downloadgcc-46cc214143093bae401dd148b00b6d0330b7af4b.zip
gcc-46cc214143093bae401dd148b00b6d0330b7af4b.tar.gz
gcc-46cc214143093bae401dd148b00b6d0330b7af4b.tar.bz2
combine.c (subst): Use reg_overlap_mentioned_p instead of comparing register numbers directly.
2007-06-11 Seongbae Park <seongbae.park@gmail.com> * combine.c (subst): Use reg_overlap_mentioned_p instead of comparing register numbers directly. From-SVN: r125634
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 6077e78..e44bad9 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -4237,7 +4237,7 @@ subst (rtx x, rtx from, rtx to, int in_dest, int unique_copy)
So force this insn not to match in this (rare) case. */
if (! in_dest && code == REG && REG_P (from)
- && REGNO (x) == REGNO (from))
+ && reg_ovelap_mentioned_p (x, from))
return gen_rtx_CLOBBER (GET_MODE (x), const0_rtx);
/* If this is an object, we are done unless it is a MEM or LO_SUM, both