From: Kyrylo Tkachov Date: Tue, 7 Jun 2016 16:52:20 +0000 (+0000) Subject: [simplify-rtx] Fix unused variable warning in simplify_cond_clz_ctz on some targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e10183dce1d15ab1ca0232f9d5aebffbe7e75728;p=gcc.git [simplify-rtx] Fix unused variable warning in simplify_cond_clz_ctz on some targets * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable. From-SVN: r237180 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 022f9aa0fcf..eeadbb2ca4b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-06-07 Kyrylo Tkachov + + * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local + variable. + 2016-06-07 Jakub Jelinek * config/i386/sse.md (avx_vec_concat): Add v=v,vm and diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 2b649fa405b..2203ff703ea 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -5301,9 +5301,10 @@ simplify_cond_clz_ctz (rtx x, rtx_code cmp_code, rtx true_val, rtx false_val) return NULL_RTX; HOST_WIDE_INT op_val; - machine_mode mode = GET_MODE (on_nonzero); - if (((op_code == CLZ && CLZ_DEFINED_VALUE_AT_ZERO (mode, op_val)) - || (op_code == CTZ && CTZ_DEFINED_VALUE_AT_ZERO (mode, op_val))) + if (((op_code == CLZ + && CLZ_DEFINED_VALUE_AT_ZERO (GET_MODE (on_nonzero), op_val)) + || (op_code == CTZ + && CTZ_DEFINED_VALUE_AT_ZERO (GET_MODE (on_nonzero), op_val))) && op_val == INTVAL (on_zero)) return on_nonzero;