]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
df-problems.c (df_rd_confluence_n): Avoid bitmap_copy by using bitmap_and_compl inste...
authorRichard Biener <rguenther@suse.de>
Tue, 18 Mar 2014 14:39:16 +0000 (14:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 18 Mar 2014 14:39:16 +0000 (14:39 +0000)
2014-03-18  Richard Biener  <rguenther@suse.de>

* df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
by using bitmap_and_compl instead of bitmap_and_compl_into.
(df_rd_transfer_function): Likewise.

From-SVN: r208650

gcc/ChangeLog
gcc/df-problems.c

index a971bbedd0db06d0b2ed6fdab3580e65c3246b9a..23c0b194a2e19c4f9ecf86f3c9bbfb4ad4b4eacc 100644 (file)
@@ -1,3 +1,9 @@
+2014-03-18  Richard Biener  <rguenther@suse.de>
+
+       * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
+       by using bitmap_and_compl instead of bitmap_and_compl_into.
+       (df_rd_transfer_function): Likewise.
+
 2014-03-18  Richard Biener  <rguenther@suse.de>
 
        * doc/lto.texi (fresolution): Fix typo.
index 1c06d61360a3d54a35262035891e764790fc0aab..77f8c9922b440b5fa7a39234d3aa88ba8b1d1cb2 100644 (file)
@@ -479,8 +479,7 @@ df_rd_confluence_n (edge e)
       bitmap_head tmp;
 
       bitmap_initialize (&tmp, &df_bitmap_obstack);
-      bitmap_copy (&tmp, op2);
-      bitmap_and_compl_into (&tmp, dense_invalidated);
+      bitmap_and_compl (&tmp, op2, dense_invalidated);
 
       EXECUTE_IF_SET_IN_BITMAP (sparse_invalidated, 0, regno, bi)
        {
@@ -524,14 +523,13 @@ df_rd_transfer_function (int bb_index)
       problem_data = (struct df_rd_problem_data *) df_rd->problem_data;
       bitmap_initialize (&tmp, &problem_data->rd_bitmaps);
 
-      bitmap_copy (&tmp, in);
+      bitmap_and_compl (&tmp, in, kill);
       EXECUTE_IF_SET_IN_BITMAP (sparse_kill, 0, regno, bi)
        {
          bitmap_clear_range (&tmp,
                              DF_DEFS_BEGIN (regno),
                              DF_DEFS_COUNT (regno));
        }
-      bitmap_and_compl_into (&tmp, kill);
       bitmap_ior_into (&tmp, gen);
       changed = !bitmap_equal_p (&tmp, out);
       if (changed)