summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-17 21:34:57 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-17 21:34:57 +0000
commitf3cc7f799c62e6b43c1a0c254fb49f8a0cbb0d79 (patch)
tree15c52851e5d2a59555251f2ed6c4bbb75ec3404a
parent4a7ea892fcd76a0036b3f1c320ede4b6cde5a638 (diff)
downloadppe42-gcc-f3cc7f799c62e6b43c1a0c254fb49f8a0cbb0d79.tar.gz
ppe42-gcc-f3cc7f799c62e6b43c1a0c254fb49f8a0cbb0d79.zip
PR rtl-optimization/27477
* combine.c (try_combine): Don't split a parallel consisting of two sets into two individual sets if both sets reference cc0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113872 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/combine.c9
2 files changed, 15 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d71b1b4c276..ff616dc32ff 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2006-05-17 Kazu Hirata <kazu@codesourcery.com>
+
+ PR rtl-optimization/27477
+ * combine.c (try_combine): Don't split a parallel consisting
+ of two sets into two individual sets if both sets reference
+ cc0.
+
2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* unwind-dw2.c: Add declarations for uw_update_context and
diff --git a/gcc/combine.c b/gcc/combine.c
index 33512ec4635..c570ea628ee 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -2896,7 +2896,14 @@ try_combine (rtx i3, rtx i2, rtx i1, int *new_direct_jump_p)
&& ! reg_referenced_p (SET_DEST (XVECEXP (newpat, 0, 0)),
XVECEXP (newpat, 0, 1))
&& ! (contains_muldiv (SET_SRC (XVECEXP (newpat, 0, 0)))
- && contains_muldiv (SET_SRC (XVECEXP (newpat, 0, 1)))))
+ && contains_muldiv (SET_SRC (XVECEXP (newpat, 0, 1))))
+#ifdef HAVE_cc0
+ /* We cannot split the parallel into two sets if both sets
+ reference cc0. */
+ && ! (reg_referenced_p (cc0_rtx, XVECEXP (newpat, 0, 0))
+ && reg_referenced_p (cc0_rtx, XVECEXP (newpat, 0, 1)))
+#endif
+ )
{
/* Normally, it doesn't matter which of the two is done first,
but it does if one references cc0. In that case, it has to
OpenPOWER on IntegriCloud