re PR rtl-optimization/79388 (wrong code with -O -fno-tree-coalesce-vars)
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 13 Feb 2017 15:39:59 +0000 (16:39 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 13 Feb 2017 15:39:59 +0000 (16:39 +0100)
commit9b7716c9a7f94c00737a0c6f0a149dcae3b216b5
tree098fb4ee8260b0959d8a50ccb1df8194800e95a3
parent2d3bc14c2e3e55871d8ad4a466b9cc574ce617e9
re PR rtl-optimization/79388 (wrong code with -O -fno-tree-coalesce-vars)

PR rtl-optimization/79388
PR rtl-optimization/79450
* combine.c (distribute_notes): When removing TEM_INSN for which
corresponding dest has last value recorded, invalidate that last
value.

* gcc.c-torture/execute/pr79388.c: New test.
* gcc.c-torture/execute/pr79450.c: New test.

From-SVN: r245390
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr79388.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr79450.c [new file with mode: 0644]