On Fri, Jan 15, 2021 at 10:02:41PM +0100, Jakub Jelinek via Gcc-patches wrote: > Like this?
Bootstrapped/regtested successfully on x86_64-linux and i686-linux. > 2021-01-15 Jakub Jelinek <ja...@redhat.com> > > PR tree-optimization/96271 > * passes.def: Pass false argument to first two pass_cd_dce > instances and true to last instance. Add comment that > last instance rewrites no longer addressed locals. > (pass_cd_dce): Add update_address_taken_p member and initialize it. > (pass_cd_dce::set_pass_param): New method. > (pass_cd_dce::execute): Return TODO_update_address_taken from > last cd_dce instance. > > * gcc.target/i386/pr96271.c: New test. Jakub