[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |13.0

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-07 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 Aldy Hernandez changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 --- Comment #13 from CVS Commits --- The master branch has been updated by Aldy Hernandez : https://gcc.gnu.org/g:a239a63f868e29e9276088e7c0fb00804c2903ba commit r13-3761-ga239a63f868e29e9276088e7c0fb00804c2903ba Author: Aldy Hernandez Date:

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-05 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 --- Comment #12 from Aldy Hernandez --- Created attachment 53831 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53831&action=edit solution improving MULT_EXPR range-ops Another solution is just improving the MULT_EXPR range-op entry. This

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 Aldy Hernandez changed: What|Removed |Added Attachment #53826|0 |1 is obsolete|

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 --- Comment #10 from Aldy Hernandez --- Original TYPE_UNSIGNED patch with leading / trailing suggestions: -2.52% As attached: -3.62% Moving the code out of set_range_from_nonzero_bits back into set_nonzero_bits: -3.7%

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 --- Comment #9 from Aldy Hernandez --- (In reply to Aldy Hernandez from comment #7) > (In reply to Andrew Macleod from comment #6) > > (In reply to Aldy Hernandez from comment #4) > > 3) It also seems to me that you then only need to add the zer

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 --- Comment #8 from Aldy Hernandez --- Created attachment 53826 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53826&action=edit untested Here's what I tested and we're still around a 3% degradation for VRP.

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 --- Comment #7 from Aldy Hernandez --- (In reply to Andrew Macleod from comment #6) > (In reply to Aldy Hernandez from comment #4) > > > > > The patch below does this, but it does have a 3% penalty for VRP (though no > > penalty to overall comp

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-04 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 --- Comment #6 from Andrew Macleod --- (In reply to Aldy Hernandez from comment #4) > > The patch below does this, but it does have a 3% penalty for VRP (though no > penalty to overall compilation). I'm inclined to pursue this route, since > i

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 --- Comment #5 from Aldy Hernandez --- (In reply to Aldy Hernandez from comment #4) > + // Reflect the mask as a simple range. For example, a mask of > + // 0xff00 could be represented as [0,0][0x100, 0x]. > + if (TYPE_UNSIGNED (type ())

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2022-11-04 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 Aldy Hernandez changed: What|Removed |Added CC||aldyh at gcc dot gnu.org,

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2021-12-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 Andrew Pinski changed: What|Removed |Added Last reconfirmed|2021-06-08 00:00:00 |2021-12-25 --- Comment #3 from Andrew Pi

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2016-07-10 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 --- Comment #2 from Marc Glisse --- Instead of looking at the definition, it could also look at get_nonzero_bits. It would help when being a multiple of 16 is less obvious, but it wouldn't do anything useful for t*15. It might be easier to optimi

[Bug tree-optimization/55157] Missed VRP with != 0 and multiply

2016-07-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55157 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Status|U