summaryrefslogtreecommitdiff
path: root/gcc/df-problems.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-18 14:39:16 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-18 14:39:16 +0000
commit53b880f3cf8c53c3748c8c775bb035d4c6705ebb (patch)
tree30ae31d241290eb7757ed63af732c2bba831fb5a /gcc/df-problems.c
parentd3432056eaf613a542ba7d916c4cccbd4c048eff (diff)
downloadgcc-53b880f3cf8c53c3748c8c775bb035d4c6705ebb.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208650 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/df-problems.c')
-rw-r--r--gcc/df-problems.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/df-problems.c b/gcc/df-problems.c
index 1c06d61360a..77f8c9922b4 100644
--- a/gcc/df-problems.c
+++ b/gcc/df-problems.c
@@ -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)