This removes redundant calls to create_var_ann.  A future patch
will make this function private.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied.

Richard.

2012-05-24  Richard Guenther  <rguent...@suse.de>

        * varpool.c (add_new_static_var): Remove call to create_var_ann.
        * tree-ssa-operands.c (create_vop_var): Likewise.

Index: gcc/varpool.c
===================================================================
*** gcc/varpool.c       (revision 187823)
--- gcc/varpool.c       (working copy)
*************** add_new_static_var (tree type)
*** 457,463 ****
    DECL_CONTEXT (new_decl) = NULL_TREE;
    DECL_ABSTRACT (new_decl) = 0;
    lang_hooks.dup_lang_specific_decl (new_decl);
-   create_var_ann (new_decl);
    new_node = varpool_node (new_decl);
    add_referenced_var (new_decl);
    varpool_finalize_decl (new_decl);
--- 457,462 ----
Index: gcc/tree-ssa-operands.c
===================================================================
*** gcc/tree-ssa-operands.c     (revision 187823)
--- gcc/tree-ssa-operands.c     (working copy)
*************** create_vop_var (struct function *fn)
*** 177,183 ****
    TREE_ADDRESSABLE (global_var) = 0;
    VAR_DECL_IS_VIRTUAL_OPERAND (global_var) = 1;
  
-   create_var_ann (global_var);
    add_referenced_var_1 (global_var, fn);
    fn->gimple_df->vop = global_var;
  }
--- 177,182 ----

Reply via email to