From 422c0989b5a4470dabec04c3795eafec7015c2ff Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Wed, 20 Apr 2011 16:14:02 +0000 Subject: [PATCH] arm.c (arm_gen_constant): Remove redundant can_invert. 2011-04-20 Andrew Stubbs gcc/ * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert. From-SVN: r172775 --- gcc/ChangeLog | 4 ++++ gcc/config/arm/arm.c | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf5ae0a6a1a..d64225c5a9d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-04-20 Andrew Stubbs + + * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert. + 2011-04-20 Richard Guenther PR tree-optimization/47892 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 5f964d6d425..83bb65b38c3 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -2591,9 +2591,6 @@ arm_gen_constant (enum rtx_code code, enum machine_mode mode, rtx cond, gen_rtx_SET (VOIDmode, target, source)); return 1; } - - if (TARGET_THUMB2) - can_invert = 1; break; case AND: @@ -3084,8 +3081,7 @@ arm_gen_constant (enum rtx_code code, enum machine_mode mode, rtx cond, if (remainder & (1 << i)) num_bits_set++; - if ((code == AND) - || (code != IOR && can_invert && num_bits_set > 16)) + if ((code == AND) || (can_invert && num_bits_set > 16)) remainder ^= 0xffffffff; else if (code == PLUS && num_bits_set > 16) remainder = (-remainder) & 0xffffffff; -- 2.30.2