On 8/21/19 11:23 AM, kamlesh kumar wrote: > Hi , > This patch include fix for PR81810 > Bootstrapped/regtested on x86_64-linux, ok for trunk? > > Thanks > ./Kamlesh > > 2019-08-21 Kamlesh Kumar <kamleshbha...@gmail.com> > > PR tree-optimization/81810 > * tree-ssa-dse.c (dse_dom_walker::dse_optimize_stmt): Added > BUILT_IN_STRCPY to consider for dse. > (maybe_trim_memstar_call): Likewise. > (initialize_ao_ref_for_dse): Likewise. > * gcc.dg/tree-ssa/pr81810.c: New testcase. And just to confirm, the work I'm already doing in DSE will pick up the missed case.
jeff