[simplify-rtx] Fix unused variable warning in simplify_cond_clz_ctz on some targets
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 7 Jun 2016 16:52:20 +0000 (16:52 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 7 Jun 2016 16:52:20 +0000 (16:52 +0000)
* simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local
variable.

From-SVN: r237180

gcc/ChangeLog
gcc/simplify-rtx.c

index 022f9aa0fcfde7bc80423b1bf9de6db093eb490f..eeadbb2ca4b205eaa3544fed2d68791f36449843 100644 (file)
@@ -1,3 +1,8 @@
+2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local
+       variable.
+
 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
 
        * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
index 2b649fa405b9c7b0869667ba688073abd4daa93b..2203ff703eab56d06b7ffa44890eedb8e1b9cd98 100644 (file)
@@ -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;