From 8d4c374c4419a8751cfae18d6b58169c62dea49f Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 27 Apr 2021 14:27:40 +0200 Subject: tree-optimization/99912 - schedule another TODO_remove_unused_locals This makes sure to remove unused locals and prune CLOBBERs after the first scalar cleanup phase after IPA optimizations. On the testcase in the PR this results in 8000 CLOBBERs removed which in turn unleashes more DSE which otherwise hits its walking limit of 256 too early on this testcase. 2021-04-27 Richard Biener PR tree-optimization/99912 * passes.def: Add comment about new TODO_remove_unused_locals. * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals at start. --- gcc/tree-stdarg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree-stdarg.c') diff --git a/gcc/tree-stdarg.c b/gcc/tree-stdarg.c index ef21c12..2f77a61 100644 --- a/gcc/tree-stdarg.c +++ b/gcc/tree-stdarg.c @@ -1114,7 +1114,7 @@ const pass_data pass_data_stdarg = ( PROP_cfg | PROP_ssa ), /* properties_required */ PROP_gimple_lva, /* properties_provided */ 0, /* properties_destroyed */ - 0, /* todo_flags_start */ + TODO_remove_unused_locals, /* todo_flags_start */ 0, /* todo_flags_finish */ }; -- cgit v1.1