This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [PR81810] unused strcpy to a local buffer not eliminated


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   <kamleshbhalui@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]