[ree] PR rtl-optimization/78038: Handle global register dataflow definitions in ree
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 21 Oct 2016 07:55:30 +0000 (07:55 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 21 Oct 2016 07:55:30 +0000 (07:55 +0000)
commit0d47cee6c4d1c2d1b3a0a4c22becde465660d6f1
treed995170944367b2434e3ebb81e4855452cf1ba8a
parenta20d03c88261b7d475db7c410c1018df326c67af
[ree] PR rtl-optimization/78038: Handle global register dataflow definitions in ree

PR rtl-optimization/78038
* ree.c (get_defs): Return NULL if a defining insn for REG cannot
be deduced to set REG through the RTL structure.
(make_defs_and_copies_lists): Return false on a failing get_defs call.

* gcc.target/aarch64/pr78038.c: New test.

From-SVN: r241395
gcc/ChangeLog
gcc/ree.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pr78038.c [new file with mode: 0644]