[Bug ipa/92538] Proposal for IPA init() constant propagation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92538 Tamar Christina changed: What|Removed |Added CC||jamborm at gcc dot gnu.org --- Comment #7 from Tamar Christina --- Hi Martin, this is the IPA pass I was talking about at the cauldron. I see the patch doesn't have any standalone testcases. Do you have some Erick?
[Bug ipa/92538] Proposal for IPA init() constant propagation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92538 Tamar Christina changed: What|Removed |Added CC||aldyh at gcc dot gnu.org, ||tnfchris at gcc dot gnu.org --- Comment #6 from Tamar Christina --- Hi Aldyh, I've been wondering for a while now whether something like this would be a better fit into Ranger's on-demand analysis. It seems like that has much of the needed machinery already and we wouldn't need to insert writes to propagate the constant information?
[Bug ipa/92538] Proposal for IPA init() constant propagation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92538 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED URL||https://gcc.gnu.org/ml/gcc- ||patches/2019-11/msg01497.ht ||ml Last reconfirmed||2020-01-23 Assignee|unassigned at gcc dot gnu.org |erick.ochoa@theobroma-syste ||ms.com Ever confirmed|0 |1
[Bug ipa/92538] Proposal for IPA init() constant propagation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92538 Erick Ochoa changed: What|Removed |Added Attachment #47278|0 |1 is obsolete|| Attachment #47355|0 |1 is obsolete|| --- Comment #5 from Erick Ochoa --- Created attachment 47455 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47455=edit Patch version 3 Hello, I am updating the patch version. Currently, this patch can be applied against this commit on master branch. commit 3cce71b23f6ed221b4335b600e718d79903cc83d Date: Wed Dec 4 20:04:10 2019 + git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@278975 138bc75d-0d04-0410-961f-82ee72b054a4 This patch works on the previous patch by eliminating bugs. Currently, all SPEC CPU 2017 benchmarks can be compiled with this patch and run successfully. Furthermore, it detects several constants that can be propagated in 12 of the SPEC CPU benchmarks.
[Bug ipa/92538] Proposal for IPA init() constant propagation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92538 --- Comment #4 from Christoph Müllner --- Early tests with this pass showed that a bunch of SPEC CPU2017 benchmarks benefit from this. For example, the written-once global variable TTSize of sjeng is eliminated by this pass.
[Bug ipa/92538] Proposal for IPA init() constant propagation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92538 Erick Ochoa changed: What|Removed |Added CC||erick.ochoa@theobroma-syste ||ms.com --- Comment #3 from Erick Ochoa --- Created attachment 47355 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47355=edit Update for ipa-initcall-cp When applied to master (commit id: d0c0f2f6d2ba374085840c79882a13a4f7bbb6f9) this patch adds an optimization to propagate constants initialized in init functions.
[Bug ipa/92538] Proposal for IPA init() constant propagation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92538 Richard Biener changed: What|Removed |Added Keywords||missed-optimization --- Comment #2 from Richard Biener --- Note that the mailing list is a better place to post patches and seek feedback.
[Bug ipa/92538] Proposal for IPA init() constant propagation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92538 Andrew Pinski changed: What|Removed |Added Blocks||4131 --- Comment #1 from Andrew Pinski --- This looks related to PR 4131. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=4131 [Bug 4131] The C++ compiler doesn't place a const class object to ".rodata" section with non trivial constructor