Factor out the mode handling in lower-subreg.c
commit50e9e5b351d68d70e6d177809860d4094cfad6ec
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Nov 2017 13:51:28 +0000 (1 13:51 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Nov 2017 13:51:28 +0000 (1 13:51 +0000)
tree58a84b77e189c3dc96c5081b85d2ba0efad24d45
parentb889f86b3b43fd1878ee218f280d84e8b4deb0f8
Factor out the mode handling in lower-subreg.c

This patch adds a helper routine (interesting_mode_p) to lower-subreg.c,
to make the decision about whether a mode can be split and, if so,
calculate the number of bytes and words in the mode.  At present this
function always returns true; a later patch will add cases in which it
can return false.

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

gcc/
* lower-subreg.c (interesting_mode_p): New function.
(compute_costs, find_decomposable_subregs, decompose_register)
(simplify_subreg_concatn, can_decompose_p, resolve_simple_move)
(resolve_clobber, dump_choices): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254308 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/lower-subreg.c