public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Segher Boessenkool <segher@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/segher/heads/cc0)] emit-rtl: Delete more CC0 stuff Date: Mon, 15 Jun 2020 19:24:12 +0000 (GMT) [thread overview] Message-ID: <20200615192412.284823858D35@sourceware.org> (raw) https://gcc.gnu.org/g:fa6327261519e23dd00014a796961856d77f1299 commit fa6327261519e23dd00014a796961856d77f1299 Author: Segher Boessenkool <segher@kernel.crashing.org> Date: Sun Sep 22 21:59:42 2019 +0000 emit-rtl: Delete more CC0 stuff Diff: --- gcc/emit-rtl.c | 47 +++-------------------------------------------- gcc/rtl.h | 2 -- 2 files changed, 3 insertions(+), 46 deletions(-) diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 60d8328cf5d..47e7cfc187f 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -2852,7 +2852,7 @@ verify_rtx_sharing (rtx orig, rtx insn) /* SCRATCH must be shared because they represent distinct values. */ return; case CLOBBER: - /* Share clobbers of hard registers (like cc0), but do not share pseudo reg + /* Share clobbers of hard registers, but do not share pseudo reg clobbers or clobbers of hard registers that originated as pseudos. This is needed to allow safe register renaming. */ if (REG_P (XEXP (x, 0)) @@ -3104,7 +3104,7 @@ repeat: /* SCRATCH must be shared because they represent distinct values. */ return; case CLOBBER: - /* Share clobbers of hard registers (like cc0), but do not share pseudo reg + /* Share clobbers of hard registers, but do not share pseudo reg clobbers or clobbers of hard registers that originated as pseudos. This is needed to allow safe register renaming. */ if (REG_P (XEXP (x, 0)) @@ -3713,47 +3713,6 @@ prev_active_insn (rtx_insn *insn) return insn; } \f -/* Return the next insn that uses CC0 after INSN, which is assumed to - set it. This is the inverse of prev_cc0_setter (i.e., prev_cc0_setter - applied to the result of this function should yield INSN). - - Normally, this is simply the next insn. However, if a REG_CC_USER note - is present, it contains the insn that uses CC0. - - Return 0 if we can't find the insn. */ - -rtx_insn * -next_cc0_user (rtx_insn *insn) -{ - rtx note = find_reg_note (insn, REG_CC_USER, NULL_RTX); - - if (note) - return safe_as_a <rtx_insn *> (XEXP (note, 0)); - - insn = next_nonnote_insn (insn); - if (insn && NONJUMP_INSN_P (insn) && GET_CODE (PATTERN (insn)) == SEQUENCE) - insn = as_a <rtx_sequence *> (PATTERN (insn))->insn (0); - - return 0; -} - -/* Find the insn that set CC0 for INSN. Unless INSN has a REG_CC_SETTER - note, it is the previous insn. */ - -rtx_insn * -prev_cc0_setter (rtx_insn *insn) -{ - rtx note = find_reg_note (insn, REG_CC_SETTER, NULL_RTX); - - if (note) - return safe_as_a <rtx_insn *> (XEXP (note, 0)); - - insn = prev_nonnote_insn (insn); - gcc_assert (sets_cc0_p (PATTERN (insn))); - - return insn; -} - /* Find a RTX_AUTOINC class rtx which matches DATA. */ static int @@ -5672,7 +5631,7 @@ copy_insn_1 (rtx orig) case SIMPLE_RETURN: return orig; case CLOBBER: - /* Share clobbers of hard registers (like cc0), but do not share pseudo reg + /* Share clobbers of hard registers, but do not share pseudo reg clobbers or clobbers of hard registers that originated as pseudos. This is needed to allow safe register renaming. */ if (REG_P (XEXP (orig, 0)) diff --git a/gcc/rtl.h b/gcc/rtl.h index 5aa760da68b..a416d9d74f1 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -3335,8 +3335,6 @@ extern rtx_insn *next_real_nondebug_insn (rtx); extern rtx_insn *prev_active_insn (rtx_insn *); extern rtx_insn *next_active_insn (rtx_insn *); extern int active_insn_p (const rtx_insn *); -extern rtx_insn *next_cc0_user (rtx_insn *); -extern rtx_insn *prev_cc0_setter (rtx_insn *); /* In emit-rtl.c */ extern int insn_line (const rtx_insn *);
next reply other threads:[~2020-06-15 19:24 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-06-15 19:24 Segher Boessenkool [this message] -- strict thread matches above, loose matches on Subject: below -- 2020-12-15 17:04 Segher Boessenkool 2020-12-15 15:51 Segher Boessenkool 2020-02-04 21:55 Segher Boessenkool
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=20200615192412.284823858D35@sourceware.org \ --to=segher@gcc.gnu.org \ --cc=gcc-cvs@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: linkBe 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).