[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-06-08 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 Kewen Lin changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-06-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 --- Comment #10 from CVS Commits --- The master branch has been updated by Kewen Lin : https://gcc.gnu.org/g:4db34072d5336d13b66f7185ec6454aa7d36f3c7 commit r12-1275-g4db34072d5336d13b66f7185ec6454aa7d36f3c7 Author: Kewen Lin Date: Mon Jun

[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-05-31 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 Kewen Lin changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gnu.org Ever

[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-05-31 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 --- Comment #9 from Kewen Lin --- (In reply to rguent...@suse.de from comment #5) > On Fri, 28 May 2021, linkw at gcc dot gnu.org wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 > > > > --- Comment #4 from Kewen Lin --- > >

[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-05-31 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 --- Comment #8 from Kewen Lin --- Created attachment 50896 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50896=edit M1 M2 SPEC2017 P9 eval result

[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-05-31 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 --- Comment #7 from Kewen Lin --- Created attachment 50895 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50895=edit Method 2, let pre generate loop carried dependence for very cheap and cheap cost model.

[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-05-31 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 --- Comment #6 from Kewen Lin --- Created attachment 50894 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50894=edit Method 1, implicitly enable pcom without unrolling once loop vectorization is enabled but pcom isn't set explicitly.

[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-05-28 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 --- Comment #5 from rguenther at suse dot de --- On Fri, 28 May 2021, linkw at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 > > --- Comment #4 from Kewen Lin --- > (In reply to rguent...@suse.de from comment

[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-05-28 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 --- Comment #4 from Kewen Lin --- (In reply to rguent...@suse.de from comment #3) > On Fri, 28 May 2021, linkw at gcc dot gnu.org wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 > > > > --- Comment #2 from Kewen Lin --- > >

[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-05-28 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 --- Comment #3 from rguenther at suse dot de --- On Fri, 28 May 2021, linkw at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 > > --- Comment #2 from Kewen Lin --- > (In reply to Richard Biener from comment #1)

[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-05-28 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 --- Comment #2 from Kewen Lin --- (In reply to Richard Biener from comment #1) Thanks for the comments! > There's predictive commoning which can do similar transforms and runs after > vectorization. It might be it doesn't handle these

[Bug tree-optimization/100794] suboptimal code due to missing pre2 when vectorization fails

2021-05-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100794 --- Comment #1 from Richard Biener --- There's predictive commoning which can do similar transforms and runs after vectorization. It might be it doesn't handle these "simple" cases or that loop dependence info is not up to the task there.