re PR middle-end/91195 (incorrect may be used uninitialized smw (272711, 273474])
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 20 Nov 2019 08:26:52 +0000 (09:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 20 Nov 2019 08:26:52 +0000 (09:26 +0100)
commit06e8db10cd80d88fb3a6afedf2c35da6c1fa6d85
tree63bfe92cbc1e4a74c4813954690d30c5e9542564
parentc04341ec45cf332e4f1a7057a6cdb461629275ab
re PR middle-end/91195 (incorrect may be used uninitialized smw (272711, 273474])

PR middle-end/91195
* tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
earlier.  Set TREE_NO_WARNING on the rhs1 of the artificially added
load.

* gcc.dg/pr91195.c: New test.

From-SVN: r278479
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr91195.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c