tree-sra.c (analyze_all_variable_accesses): Dump that a struture is too big for total...
authorMartin Jambor <mjambor@suse.cz>
Fri, 8 Jul 2011 10:16:51 +0000 (12:16 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 8 Jul 2011 10:16:51 +0000 (12:16 +0200)
2011-07-08  Martin Jambor  <mjambor@suse.cz>

* tree-sra.c (analyze_all_variable_accesses): Dump that a struture
is too big for total scalarization.

From-SVN: r176033

gcc/ChangeLog
gcc/tree-sra.c

index 9c466fef9e47d9e4e55375b069a1cee67d409ea2..1bd92cb7d94481c6638ee7c3c06f361de462714d 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-08  Martin Jambor  <mjambor@suse.cz>
+
+       * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
+       is too big for total scalarization.
+
 2011-07-07  Richard Henderson  <rth@redhat.com>
 
        * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
index ca9f316f7128b8a46c58022682df956fd82f11f1..6f784ee6489b776b02198aecbc95c42fccfdaf9b 100644 (file)
@@ -2312,16 +2312,24 @@ analyze_all_variable_accesses (void)
        tree var = referenced_var (i);
 
        if (TREE_CODE (var) == VAR_DECL
-           && ((unsigned) tree_low_cst (TYPE_SIZE (TREE_TYPE (var)), 1)
-               <= max_total_scalarization_size)
            && type_consists_of_records_p (TREE_TYPE (var)))
          {
-           completely_scalarize_var (var);
-           if (dump_file && (dump_flags & TDF_DETAILS))
+           if ((unsigned) tree_low_cst (TYPE_SIZE (TREE_TYPE (var)), 1)
+               <= max_total_scalarization_size)
+             {
+               completely_scalarize_var (var);
+               if (dump_file && (dump_flags & TDF_DETAILS))
+                 {
+                   fprintf (dump_file, "Will attempt to totally scalarize ");
+                   print_generic_expr (dump_file, var, 0);
+                   fprintf (dump_file, " (UID: %u): \n", DECL_UID (var));
+                 }
+             }
+           else if (dump_file && (dump_flags & TDF_DETAILS))
              {
-               fprintf (dump_file, "Will attempt to totally scalarize ");
+               fprintf (dump_file, "Too big to totally scalarize: ");
                print_generic_expr (dump_file, var, 0);
-               fprintf (dump_file, " (UID: %u)\n", DECL_UID (var));
+               fprintf (dump_file, " (UID: %u)\n", DECL_UID (var));
              }
          }
       }