Make more use of GET_MODE_UNIT_BITSIZE
authorRichard Sandiford <richard.sandiford@linaro.org>
Fri, 13 Oct 2017 09:53:00 +0000 (09:53 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 13 Oct 2017 09:53:00 +0000 (09:53 +0000)
commit250a60f3879d2d508d0d08e9da1dfa1648e1a369
treefc2db3da8cc97b1a2250ffa755f81ed79f7052be
parentfb98441af9c84caef6a0e3210ace4b8ffc7e3840
Make more use of GET_MODE_UNIT_BITSIZE

This patch is like the previous GET_MODE_UNIT_SIZE one,
but for bit rather than byte sizes.

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

gcc/
* cfgexpand.c (expand_debug_expr): Use GET_MODE_UNIT_BITSIZE.
(expand_debug_source_expr): Likewise.
* combine.c (combine_simplify_rtx): Likewise.
* cse.c (fold_rtx): Likewise.
* fwprop.c (canonicalize_address): Likewise.
* targhooks.c (default_shift_truncation_mask): Likewise.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r253716
gcc/ChangeLog
gcc/cfgexpand.c
gcc/combine.c
gcc/cse.c
gcc/fwprop.c
gcc/targhooks.c