re PR rtl-optimization/79728 (ICE in setup_pressure_classes, at ira.c:912)
authorBernd Schmidt <bernds@redhat.com>
Tue, 14 Mar 2017 17:50:46 +0000 (11:50 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 14 Mar 2017 17:50:46 +0000 (11:50 -0600)
commit4692943dace8ba6e1fc3edc6e1c2b051a81b74b7
tree14346fcab7989f1900fef8539874ab63718d1e7e
parent6c841832df663667e5938de3ca0d8a6602920477
re PR rtl-optimization/79728 (ICE in setup_pressure_classes, at ira.c:912)

PR rtl-optimization/79728
* regs.h (struct target_regs): New field
x_contains_allocatable_regs_of_mode.
(contains_allocatable_regs_of_mode): New macro.
* reginfo.c (init_reg_sets_1): Initialize it, and change
contains_reg_of_mode so it includes global regs as well.
* reload.c (push_reload): Use contains_allocatable_regs_of_mode
rather than contains_regs_of_mode.

PR rtl-optimization/79728
* gcc.target/i386/sse-globalreg.c: New test.

From-SVN: r246138
gcc/ChangeLog
gcc/reginfo.c
gcc/regs.h
gcc/reload.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/sse-globalreg.c [new file with mode: 0644]