[Bug tree-optimization/96108] Different behavior in DSE pass

2024-05-15 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96108 Richard Biener changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug tree-optimization/96108] Different behavior in DSE pass

2020-07-09 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96108 --- Comment #8 from Jakub Jelinek --- Bisection says this changed with r10-2587-gcc19f80ceb27cc3d31d259ebecaad12005acfd7e The change was in forwprop1, instead of what we used to do: _5 = a_4(D); ... = _5->b; ... _5->b = ...; we now propag

[Bug tree-optimization/96108] Different behavior in DSE pass

2020-07-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96108 --- Comment #7 from Andrew Pinski --- My question was rather do you an original code where we are now missing an optimization and you reduced the code down to this and what happens if you correct the issue of using an uninit pointer (because unle

[Bug tree-optimization/96108] Different behavior in DSE pass

2020-07-08 Thread 499537630 at qq dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96108 --- Comment #6 from Jolyon <499537630 at qq dot com> --- I agree that we really can't do this in the test. GCC's inconsistencies with this behavior are beyond the developers' consideration(the behavior of DSE pass). I tried to initialize the struc

[Bug tree-optimization/96108] Different behavior in DSE pass

2020-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96108 --- Comment #5 from Richard Biener --- The testcase is of course invoking undefined behavior since it dereferences an uninitialized pointer. I'm not sure there was intentional changes to DSE here but eliding the store looks reasonable to me (tho

[Bug tree-optimization/96108] Different behavior in DSE pass

2020-07-08 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96108 --- Comment #4 from Marc Glisse --- During optimization, we often have branches with dead code that would exhibit UB if it was ever executed. Cleaning up those branches as much as possible helps reduce code size, show that some variables (in the

[Bug tree-optimization/96108] Different behavior in DSE pass

2020-07-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96108 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug tree-optimization/96108] Different behavior in DSE pass

2020-07-08 Thread 499537630 at qq dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96108 --- Comment #2 from Jolyon <499537630 at qq dot com> --- (In reply to Andrew Pinski from comment #1) > Did it only change when a is uninitialized or was this a reduction of a > bigger code and you reduced it too far? Or you could fix the tauth.c?

[Bug tree-optimization/96108] Different behavior in DSE pass

2020-07-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96108 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |WAITING Keywords|