From: Vladimir Makarov <vmakarov@redhat.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: patch to fix PR82338
Date: Fri, 29 Sep 2017 17:16:00 -0000 [thread overview]
Message-ID: <cdccf076-3f26-a9a6-d930-564aac4e9499@redhat.com> (raw)
The following patch fixes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82338
The patch was bootstrapped and tested on x86-64.
Committed as rev. 253259.
Index: ChangeLog
===================================================================
--- ChangeLog (revision 253298)
+++ ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2017-09-29 Vladimir Makarov <vmakarov@redhat.com>
+
+ PR rtl-optimization/82338
+ * lra-constraints.c (inherit_in_ebb): Check usage_insns check.
+
2017-09-29 Alexander Monakov <amonakov@ispras.ru>
* genmodes.c (calc_wider_mode): Suppress qsort macro.
Index: lra-constraints.c
===================================================================
--- lra-constraints.c (revision 253298)
+++ lra-constraints.c (working copy)
@@ -6219,6 +6219,7 @@ inherit_in_ebb (rtx_insn *head, rtx_insn
&& ((cheap = XEXP (cheap, 0)), true)
&& (regno = REGNO (cheap)) >= FIRST_PSEUDO_REGISTER
&& (hard_regno = reg_renumber[regno]) >= 0
+ && usage_insns[regno].check == curr_usage_insns_check
/* If there are pending saves/restores, the
optimization is not worth. */
&& usage_insns[regno].calls_num == calls_num - 1
reply other threads:[~2017-09-29 17:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=cdccf076-3f26-a9a6-d930-564aac4e9499@redhat.com \
--to=vmakarov@redhat.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).