[Bug tree-optimization/105248] gimple level DSE does not add DEBUG statement when deleting store to ADDRESSABLE local decl

2022-11-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105248

Andrew Pinski  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #2 from Andrew Pinski  ---
The problem is exactly the same as PR 105145 so closing as a dup.

*** This bug has been marked as a duplicate of bug 105145 ***

[Bug tree-optimization/105248] gimple level DSE does not add DEBUG statement when deleting store to ADDRESSABLE local decl

2022-11-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105248

Andrew Pinski  changed:

   What|Removed |Added

Summary|Missing value or location   |gimple level DSE does not
   |attribute for constant live |add DEBUG statement when
   |variable likely caused by   |deleting store to
   |tree-dse at -O1/-O2/-O3 |ADDRESSABLE local decl
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1
   Last reconfirmed||2022-11-07

--- Comment #1 from Andrew Pinski  ---
Confirmed.
DSE could have added a DEBUG statement when it did:
  Deleted dead store: # .MEM_5 = VDEF <.MEM_4(D)>
l_56D.2737 = 6;