[23/77] Replace != VOIDmode checks with is_a <scalar_int_mode>
authorRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 30 Aug 2017 11:11:16 +0000 (11:11 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 30 Aug 2017 11:11:16 +0000 (11:11 +0000)
commit673bf5a6b65e51d177d2cf9fc4002171b1f467ab
tree6c897f8eed13c0d78998341ce2a350c204fa4667
parent45e8e706e295e7770d02c6d9c9798f4bab7ab524
[23/77] Replace != VOIDmode checks with is_a <scalar_int_mode>

This patch replaces some checks against VOIDmode with checks
of is_a <scalar_int_mode>, in cases where scalar integer modes
were the only useful alternatives left.

gcc/
2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

* cfgexpand.c (expand_debug_expr): Use is_a <scalar_int_mode>
instead of != VOIDmode.
* combine.c (if_then_else_cond): Likewise.
(change_zero_ext): Likewise.
* dwarf2out.c (mem_loc_descriptor): Likewise.
(loc_descriptor): Likewise.
* rtlanal.c (canonicalize_condition): Likewise.
* simplify-rtx.c (simplify_relational_operation_1): Likewise.

From-SVN: r251475
gcc/cfgexpand.c
gcc/combine.c
gcc/dwarf2out.c
gcc/rtlanal.c
gcc/simplify-rtx.c