re PR rtl-optimization/88478 (valgrind error in cselib_record_sets)
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Dec 2018 23:17:03 +0000 (00:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 14 Dec 2018 23:17:03 +0000 (00:17 +0100)
commitbbc8d04f0e238cd5e86c240021b2c0aaf1b58d1b
tree394f993fcbbae87c63dd6e7b5e257cc45767798a
parent302db8ba6180906dd9a8c4ce670aff804f921fab
re PR rtl-optimization/88478 (valgrind error in  cselib_record_sets)

PR rtl-optimization/88478
* cselib.c (cselib_record_sets): Move sets[i].src_elt tests
after REG_P (dest) test.

* g++.dg/opt/pr88478.C: New test.

From-SVN: r267159
gcc/ChangeLog
gcc/cselib.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr88478.C [new file with mode: 0644]