Commit 851dac7c by Vladimir Makarov Committed by Vladimir Makarov

re PR rtl-optimization/82338 (valgrind error in inherit_in_ebb)

2017-09-29  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/82338
	* lra-constraints.c (inherit_in_ebb): Check usage_insns check.

From-SVN: r253299
parent e1e299f3
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> 2017-09-29 Alexander Monakov <amonakov@ispras.ru>
* genmodes.c (calc_wider_mode): Suppress qsort macro. * genmodes.c (calc_wider_mode): Suppress qsort macro.
...@@ -6219,6 +6219,7 @@ inherit_in_ebb (rtx_insn *head, rtx_insn *tail) ...@@ -6219,6 +6219,7 @@ inherit_in_ebb (rtx_insn *head, rtx_insn *tail)
&& ((cheap = XEXP (cheap, 0)), true) && ((cheap = XEXP (cheap, 0)), true)
&& (regno = REGNO (cheap)) >= FIRST_PSEUDO_REGISTER && (regno = REGNO (cheap)) >= FIRST_PSEUDO_REGISTER
&& (hard_regno = reg_renumber[regno]) >= 0 && (hard_regno = reg_renumber[regno]) >= 0
&& usage_insns[regno].check == curr_usage_insns_check
/* If there are pending saves/restores, the /* If there are pending saves/restores, the
optimization is not worth. */ optimization is not worth. */
&& usage_insns[regno].calls_num == calls_num - 1 && usage_insns[regno].calls_num == calls_num - 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment