PR rtl-optimization/79728
commit0078da24961b9c5d7f5b6b32f8039cdb8a10e219
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Mar 2017 17:50:46 +0000 (14 17:50 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Mar 2017 17:50:46 +0000 (14 17:50 +0000)
tree14346fcab7989f1900fef8539874ab63718d1e7e
parente4782b9306fc0909da933847a389106b535742e8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246138 138bc75d-0d04-0410-961f-82ee72b054a4
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]