This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch to fix PR82338
- From: Vladimir Makarov <vmakarov at redhat dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 29 Sep 2017 13:16:27 -0400
- Subject: patch to fix PR82338
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=vmakarov at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 5987D13AA4
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