re PR rtl-optimization/79286 (ira and lra wrong code at -O2 and -Os on i686-linux)
commita72b242eacf3bc43375daff829e04bcce634ad22
authorAlan Modra <amodra@gmail.com>
Thu, 16 Feb 2017 22:56:51 +0000 (17 09:26 +1030)
committerJeff Law <law@gcc.gnu.org>
Thu, 16 Feb 2017 22:56:51 +0000 (16 15:56 -0700)
tree8292f5e8b39f99c7703446eee1a6e3e17e09c454
parent9b9ad3606debd14bd1e57306358f4fcab2c2b1db
re PR rtl-optimization/79286 (ira and lra wrong code at -O2 and -Os on i686-linux)

2017-02-16  Alan Modra  <amodra@gmail.com>

PR rtl-optimization/79286
* ira.c (def_dominates_uses): New function.
(update_equiv_regs): Don't create an equivalence for insns that
may trap where the register def does not dominate the use.

* gcc.c-torture/execute/pr79286.c: New.

From-SVN: r245521
gcc/ChangeLog
gcc/ira.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr79286.c [new file with mode: 0644]