From: Vladimir Makarov Date: Fri, 29 Sep 2017 17:15:24 +0000 (+0000) Subject: re PR rtl-optimization/82338 (valgrind error in inherit_in_ebb) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=851dac7c208cd6d5136480068ded0f70995a9c2e;p=gcc.git re PR rtl-optimization/82338 (valgrind error in inherit_in_ebb) 2017-09-29 Vladimir Makarov PR rtl-optimization/82338 * lra-constraints.c (inherit_in_ebb): Check usage_insns check. From-SVN: r253299 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dfabde55a1c..a2eea908053 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-09-29 Vladimir Makarov + + PR rtl-optimization/82338 + * lra-constraints.c (inherit_in_ebb): Check usage_insns check. + 2017-09-29 Alexander Monakov * genmodes.c (calc_wider_mode): Suppress qsort macro. diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index d90bde2817a..4734c072c96 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -6219,6 +6219,7 @@ inherit_in_ebb (rtx_insn *head, rtx_insn *tail) && ((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