[Bug c++/108873] Using the C++ front-end causes no DCE from happening

2023-02-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108873 --- Comment #3 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #2) > Well, it doesn't have side-effects, so why would it be emitted? Even though the side effect of deferencing here can be optimized away, VRP can notice that *e wi

[Bug c++/108873] Using the C++ front-end causes no DCE from happening

2023-02-21 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108873 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug c++/108873] Using the C++ front-end causes no DCE from happening

2023-02-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108873 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |c++ --- Comment #1 from Andrew Pinski