Add narrower_subreg_mode helper function
authorRichard Sandiford <richard.sandiford@linaro.org>
Wed, 1 Nov 2017 12:52:50 +0000 (12:52 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 1 Nov 2017 12:52:50 +0000 (12:52 +0000)
commitb3ad445f853ab7ca0da6216ff1bebfd6f90425f5
tree577e5328d9d178838c8eb7f7463fb071697131b4
parent4b926feae10ecec6555dca641c03a8239a824eab
Add narrower_subreg_mode helper function

This patch adds a narrowing equivalent of wider_subreg_mode.  At present
there is only one user.

2017-11-01  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* rtl.h (narrower_subreg_mode): New function.
* ira-color.c (update_costs_from_allocno): Use it.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r254304
gcc/ChangeLog
gcc/ira-color.c
gcc/rtl.h