Simple fix to code to remove unnecessary NULL checks.
authorSriraman Tallam <tmsriram@google.com>
Thu, 3 Jan 2013 00:42:10 +0000 (00:42 +0000)
committerSriraman Tallam <tmsriram@gcc.gnu.org>
Thu, 3 Jan 2013 00:42:10 +0000 (00:42 +0000)
2013-01-02  Sriraman Tallam  <tmsriram@google.com>

* config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
NULL.

From-SVN: r194828

gcc/ChangeLog
gcc/config/i386/i386.c

index 2ab26d339c1a9a390c5e948eaae88bddecaea142..244208da881cd8bfd90cafe561559203f5ab5c16 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-02  Sriraman Tallam  <tmsriram@google.com>
+
+       * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
+       NULL.
+
 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        PR middle-end/55198
index ee2b052bb9a5126965e61d630f95a73f7f5af7e5..60f68d45369a620596bd47b723ad43226ef1a22e 100644 (file)
@@ -29626,15 +29626,9 @@ fold_builtin_cpu (tree fndecl, tree *args)
       {"avx2",   F_AVX2}
     };
 
-  tree __processor_model_type = NULL_TREE;
-  tree __cpu_model_var = NULL_TREE;
-
-  if (__processor_model_type == NULL_TREE)
-    __processor_model_type = build_processor_model_struct ();
-
-  if (__cpu_model_var == NULL_TREE)
-    __cpu_model_var = make_var_decl (__processor_model_type,
-                                    "__cpu_model");
+  tree __processor_model_type = build_processor_model_struct ();
+  tree __cpu_model_var = make_var_decl (__processor_model_type,
+                                       "__cpu_model");
 
   gcc_assert ((args != NULL) && (*args != NULL));