From: Alan Modra <amodra@gmail.com>
To: gcc-patches@gcc.gnu.org, Bernd Schmidt <bernds@codesourcery.com>
Subject: PowerPC shrink-wrap support 1 of 3
Date: Sat, 17 Sep 2011 08:22:00 -0000 [thread overview]
Message-ID: <20110917071759.GU10321@bubble.grove.modra.org> (raw)
In-Reply-To: <20110917071643.GT10321@bubble.grove.modra.org>
This obvious patch extends my 2011-08-03 fix to simple_return.
Necessary for the same reason as the original patch, namely that
rs6000.md has a peephole2 that matches and recreates a conditional
jump. With the third patch in this series applied, rs6000 will start
to use simple_return in conditional jumps. Even though I think this
patch meets the "obvious" requirement, I won't apply it without the
other two since the assert may trigger on mips without the second
patch in this series.
PR rtl-optimization/49941
* jump.c (mark_jump_label_1): Set JUMP_LABEL for simple_return jumps.
diff -urp -x.svn -x'*~' -x'*.orig' gcc-bernd/gcc/jump.c gcc-current/gcc/jump.c
--- gcc-bernd/gcc/jump.c 2011-09-16 11:52:14.000000000 +0930
+++ gcc-current/gcc/jump.c 2011-09-16 09:59:39.000000000 +0930
@@ -1086,6 +1086,7 @@ mark_jump_label_1 (rtx x, rtx insn, bool
return;
case RETURN:
+ case SIMPLE_RETURN:
if (is_target)
{
gcc_assert (JUMP_LABEL (insn) == NULL || JUMP_LABEL (insn) == x);
@@ -1408,7 +1409,7 @@ redirect_exp_1 (rtx *loc, rtx olabel, rt
int i;
const char *fmt;
- if ((code == LABEL_REF && XEXP (x, 0) == olabel)
+ if ((code == LABEL_REF && XEXP (x, 0) == olabel)
|| x == olabel)
{
x = redirect_target (nlabel);
--
Alan Modra
Australia Development Lab, IBM
next prev parent reply other threads:[~2011-09-17 7:18 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-17 7:59 PowerPC shrink-wrap support 0 " Alan Modra
2011-09-17 8:22 ` Alan Modra [this message]
2011-09-17 9:13 ` PowerPC shrink-wrap support 2 " Alan Modra
2011-09-17 9:26 ` PowerPC shrink-wrap support 3 " Alan Modra
2011-09-26 14:25 ` Alan Modra
2011-09-27 0:15 ` Alan Modra
2011-09-27 0:19 ` Bernd Schmidt
2011-09-27 0:49 ` Alan Modra
2011-09-27 1:08 ` Bernd Schmidt
2011-09-27 2:16 ` Alan Modra
2011-09-28 16:35 ` Alan Modra
2011-10-16 20:19 ` David Edelsohn
2011-10-26 13:03 ` Alan Modra
2011-10-26 13:42 ` Bernd Schmidt
2011-10-26 14:40 ` Alan Modra
2011-10-26 14:44 ` Bernd Schmidt
2011-10-26 15:40 ` Alan Modra
2011-10-28 0:41 ` Alan Modra
2011-10-31 15:14 ` Alan Modra
2011-11-01 15:34 ` Alan Modra
2011-11-07 17:27 ` Jakub Jelinek
2011-11-09 9:48 ` Hans-Peter Nilsson
2011-11-10 11:25 ` Revert "PowerPC shrink-wrap support 3 of 3" Hans-Peter Nilsson
2011-11-10 12:10 ` Richard Guenther
2011-11-10 13:29 ` Hans-Peter Nilsson
2011-11-10 13:44 ` Richard Guenther
2011-11-10 14:13 ` Bernd Schmidt
2011-11-10 15:23 ` Hans-Peter Nilsson
2011-11-10 18:06 ` Hans-Peter Nilsson
2011-11-11 22:09 ` Hans-Peter Nilsson
2011-11-14 14:59 ` Bernd Schmidt
2011-11-14 16:49 ` CFG review needed for fix of " Hans-Peter Nilsson
2011-11-14 17:06 ` Ramana Radhakrishnan
2011-11-14 17:15 ` Rainer Orth
2011-11-14 18:21 ` Richard Henderson
2011-11-14 22:44 ` Alan Modra
2011-11-15 2:50 ` Hans-Peter Nilsson
2011-11-15 5:03 ` Richard Henderson
2011-11-15 6:11 ` Bernd Schmidt
2011-11-15 7:09 ` David Miller
2011-11-15 18:54 ` Richard Henderson
2011-11-15 0:45 ` Hans-Peter Nilsson
2011-11-11 0:22 ` Revert " Michael Meissner
2015-04-08 11:11 ` Gerald Pfeifer
2011-09-17 18:16 ` PowerPC shrink-wrap support 0 of 3 Bernd Schmidt
2011-09-19 5:39 ` Alan Modra
2011-09-19 13:36 ` Bernd Schmidt
[not found] ` <20110921152851.GE10321@bubble.grove.modra.org>
[not found] ` <20110922144017.GF10321@bubble.grove.modra.org>
2011-09-26 14:35 ` [PATCH] PowerPC shrink-wrap support benchmark gains Alan Modra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110917071759.GU10321@bubble.grove.modra.org \
--to=amodra@gmail.com \
--cc=bernds@codesourcery.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).