re PR rtl-optimization/85342 (ICE: SIGSEGV in copyprop_hardreg_forward_1 (regcprop...
authorJakub Jelinek <jakub@redhat.com>
Thu, 12 Apr 2018 08:39:50 +0000 (10:39 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 12 Apr 2018 08:39:50 +0000 (10:39 +0200)
commit868865f40f37e970ab1993d549e0bd9eb254ccc7
treebd571d09488172f90ec661da283268ff3cae3fda
parentbf3989207ee7c50926aa7ca28cf1e13983e809b5
re PR rtl-optimization/85342 (ICE: SIGSEGV in copyprop_hardreg_forward_1 (regcprop.c:995) with -O2 -mavx512vl)

PR rtl-optimization/85342
* regcprop.c (copyprop_hardreg_forward_1): Remove replaced array, use
a bool scalar var inside of the loop instead.  Don't try to update
recog_data.operand after failed apply_change_group.

* gcc.target/i386/pr85342.c: New test.

From-SVN: r259338
gcc/ChangeLog
gcc/regcprop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr85342.c [new file with mode: 0644]