diff mbox series

Test simlified call in cgraph_node::analyze().

Message ID 25dc7142-081e-5f90-3327-432a07c332e6@suse.cz
State New
Headers show
Series Test simlified call in cgraph_node::analyze(). | expand

Commit Message

Martin Liška April 21, 2021, 7:54 a.m. UTC
As mentioned and explained in the PR, the calls are redundant.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Thanks,
Martin

gcc/ChangeLog:

	PR ipa/98815
	* cgraphunit.c (cgraph_node::analyze): Remove duplicate
	free_dominance_info calls.
---
 gcc/cgraphunit.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Martin Jambor April 21, 2021, 9:19 a.m. UTC | #1
Hi,

On Wed, Apr 21 2021, Martin Liška wrote:
> As mentioned and explained in the PR, the calls are redundant.
>
> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>
> Ready to be installed?

Yes.

Thanks,

Martin


> Thanks,
> Martin
>
> gcc/ChangeLog:
>
> 	PR ipa/98815
> 	* cgraphunit.c (cgraph_node::analyze): Remove duplicate
> 	free_dominance_info calls.
> ---
>  gcc/cgraphunit.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
> index 0b70e4d4fde..098eb99dc95 100644
> --- a/gcc/cgraphunit.c
> +++ b/gcc/cgraphunit.c
> @@ -678,8 +678,6 @@ cgraph_node::analyze (void)
>  	  gimple_register_cfg_hooks ();
>  	  bitmap_obstack_initialize (NULL);
>  	  execute_pass_list (cfun, g->get_passes ()->all_lowering_passes);
> -	  free_dominance_info (CDI_POST_DOMINATORS);
> -	  free_dominance_info (CDI_DOMINATORS);
>  	  compact_blocks ();
>  	  bitmap_obstack_release (NULL);
>  	  lowered = true;
> -- 
> 2.31.1
diff mbox series

Patch

diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 0b70e4d4fde..098eb99dc95 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -678,8 +678,6 @@  cgraph_node::analyze (void)
 	  gimple_register_cfg_hooks ();
 	  bitmap_obstack_initialize (NULL);
 	  execute_pass_list (cfun, g->get_passes ()->all_lowering_passes);
-	  free_dominance_info (CDI_POST_DOMINATORS);
-	  free_dominance_info (CDI_DOMINATORS);
 	  compact_blocks ();
 	  bitmap_obstack_release (NULL);
 	  lowered = true;