Re: Prevent tree-ssa-dce.c from deleting stores at -Og

2019-07-29 Thread Richard Sandiford
Jeff Law writes: > On 7/7/19 3:45 AM, Richard Sandiford wrote: >> DCE tries to delete dead stores to local data and also tries to insert >> debug binds for simple cases: >> >> /* If this is a store into a variable that is being optimized away, >> add a debug bind stmt if possible. */ >>

Re: Prevent tree-ssa-dce.c from deleting stores at -Og

2019-07-12 Thread Richard Sandiford
Richard Biener writes: > On Mon, Jul 8, 2019 at 4:41 PM Richard Sandiford > wrote: >> >> Richard Biener writes: >> > On Sun, Jul 7, 2019 at 9:07 PM Jeff Law wrote: >> >> >> >> On 7/7/19 3:45 AM, Richard Sandiford wrote: >> >> > DCE tries to delete dead stores to local data and also tries to ins

Re: Prevent tree-ssa-dce.c from deleting stores at -Og

2019-07-08 Thread Richard Biener
On Mon, Jul 8, 2019 at 4:41 PM Richard Sandiford wrote: > > Richard Biener writes: > > On Sun, Jul 7, 2019 at 9:07 PM Jeff Law wrote: > >> > >> On 7/7/19 3:45 AM, Richard Sandiford wrote: > >> > DCE tries to delete dead stores to local data and also tries to insert > >> > debug binds for simple

Re: Prevent tree-ssa-dce.c from deleting stores at -Og

2019-07-08 Thread Jeff Law
On 7/8/19 5:34 AM, Richard Biener wrote: > On Sun, Jul 7, 2019 at 9:07 PM Jeff Law wrote: >> >> On 7/7/19 3:45 AM, Richard Sandiford wrote: >>> DCE tries to delete dead stores to local data and also tries to insert >>> debug binds for simple cases: >>> >>> /* If this is a store into a variable t

Re: Prevent tree-ssa-dce.c from deleting stores at -Og

2019-07-08 Thread Richard Sandiford
Richard Biener writes: > On Sun, Jul 7, 2019 at 9:07 PM Jeff Law wrote: >> >> On 7/7/19 3:45 AM, Richard Sandiford wrote: >> > DCE tries to delete dead stores to local data and also tries to insert >> > debug binds for simple cases: >> > >> > /* If this is a store into a variable that is being

Re: Prevent tree-ssa-dce.c from deleting stores at -Og

2019-07-08 Thread Richard Biener
On Sun, Jul 7, 2019 at 9:07 PM Jeff Law wrote: > > On 7/7/19 3:45 AM, Richard Sandiford wrote: > > DCE tries to delete dead stores to local data and also tries to insert > > debug binds for simple cases: > > > > /* If this is a store into a variable that is being optimized away, > > add a d

Re: Prevent tree-ssa-dce.c from deleting stores at -Og

2019-07-07 Thread Jeff Law
On 7/7/19 3:45 AM, Richard Sandiford wrote: > DCE tries to delete dead stores to local data and also tries to insert > debug binds for simple cases: > > /* If this is a store into a variable that is being optimized away, > add a debug bind stmt if possible. */ > if (MAY_HAVE_DEBUG_BIND_S

Prevent tree-ssa-dce.c from deleting stores at -Og

2019-07-07 Thread Richard Sandiford
DCE tries to delete dead stores to local data and also tries to insert debug binds for simple cases: /* If this is a store into a variable that is being optimized away, add a debug bind stmt if possible. */ if (MAY_HAVE_DEBUG_BIND_STMTS && gimple_assign_single_p (stmt) && is_