[Bug ipa/65502] pure-const should play well with clobbers.

2018-11-19 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502 --- Comment #7 from Jan Hubicka --- > Can the bug be marked as resolved? I think to fully resolve we still want to teach DCE to replace pure/const destructor by clobber when removing it. This should not be too hard to do because destructors are

[Bug ipa/65502] pure-const should play well with clobbers.

2018-11-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #6

[Bug ipa/65502] pure-const should play well with clobbers.

2015-03-23 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502 --- Comment #5 from Jan Hubicka --- > I think we can safely ignore clobbers when scanning functions for > pure/constness. Yes (it is what the patch does), but doing so may cause worse code in the function calling these destructors. DCE will rem

[Bug ipa/65502] pure-const should play well with clobbers.

2015-03-23 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Target Milestone|

[Bug ipa/65502] pure-const should play well with clobbers.

2015-03-22 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502 Jan Hubicka changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug ipa/65502] pure-const should play well with clobbers.

2015-03-22 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502 --- Comment #2 from Jan Hubicka --- Author: hubicka Date: Sun Mar 22 21:10:24 2015 New Revision: 221574 URL: https://gcc.gnu.org/viewcvs?rev=221574&root=gcc&view=rev Log: PR ipa/65502 * ipa-comdats.c (enqueue_references): Walk through t

[Bug ipa/65502] pure-const should play well with clobbers.

2015-03-21 Thread hubicka at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65502 --- Comment #1 from Jan Hubicka --- The following patch makes ipa-pure-const to detect these functions as pure/const. There are two issues 1) I think we should preserve clobber semantic when removing a call to pure/const destructor. I wonde