Simplify call of gimple_call_internal_p.
authorMartin Liska <mliska@suse.cz>
Wed, 8 Nov 2017 11:45:35 +0000 (12:45 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 8 Nov 2017 11:45:35 +0000 (11:45 +0000)
2017-11-08  Martin Liska  <mliska@suse.cz>

* gimplify.c (expand_FALLTHROUGH_r): Simplify usage
of gimple_call_internal_p.

From-SVN: r254524

gcc/ChangeLog
gcc/gimplify.c

index ed9a130637066946012c11045a512263d4a10be4..6ba019ca7fe03d2873deab59172e1d6da9a0b657 100644 (file)
@@ -1,3 +1,8 @@
+2017-11-08  Martin Liska  <mliska@suse.cz>
+
+       * gimplify.c (expand_FALLTHROUGH_r): Simplify usage
+       of gimple_call_internal_p.
+
 2017-11-07  Tom de Vries  <tom@codesourcery.com>
 
        * config/mips/mips.h (ASM_OUTPUT_LABELREF): Wrap in "do {} while (0)".
index 9563d825a6aff05682a1717dc371e876f0d39b23..e9168785fc010658f76d0b01f73fe8bb9ddf2a57 100644 (file)
@@ -2223,8 +2223,7 @@ expand_FALLTHROUGH_r (gimple_stmt_iterator *gsi_p, bool *handled_ops_p,
          while (!gsi_end_p (gsi2))
            {
              stmt = gsi_stmt (gsi2);
-             enum gimple_code gc = gimple_code (stmt);
-             if (gc == GIMPLE_LABEL)
+             if (gimple_code (stmt) == GIMPLE_LABEL)
                {
                  tree label = gimple_label_label (as_a <glabel *> (stmt));
                  if (gimple_has_location (stmt) && DECL_ARTIFICIAL (label))
@@ -2233,8 +2232,7 @@ expand_FALLTHROUGH_r (gimple_stmt_iterator *gsi_p, bool *handled_ops_p,
                      break;
                    }
                }
-             else if (gc == GIMPLE_CALL
-                      && gimple_call_internal_p (stmt, IFN_ASAN_MARK))
+             else if (gimple_call_internal_p (stmt, IFN_ASAN_MARK))
                ;
              else
                /* Something other is not expected.  */