[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-05-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Known to work|

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-05-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 --- Comment #11 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:938a02a589dc22cef65bba2b131fc9e4874baddb commit r13-128-g938a02a589dc22cef65bba2b131fc9e4874baddb Author: Richard Biener Date:

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-02-23 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 --- Comment #10 from Kewen Lin --- (In reply to rguent...@suse.de from comment #9) > On Wed, 23 Feb 2022, linkw at gcc dot gnu.org wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 > > > > --- Comment #8 from Kewen Lin --- > >

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-02-22 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 --- Comment #9 from rguenther at suse dot de --- On Wed, 23 Feb 2022, linkw at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 > > --- Comment #8 from Kewen Lin --- > I had one local hack and just found it can

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-02-22 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 --- Comment #8 from Kewen Lin --- I had one local hack and just found it can survive on x86 bootstrapping and regression testing. I guess maybe it's good to post here. Just ignore this if it looks like noise. :) The point is to do the

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-02-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 --- Comment #7 from Richard Biener --- bool patterns are to distinguish flag uses from data uses since a vectorized flag true will be -1 while the unvectorized flag is 1 but of course any data uses have to be retained. What we are missing here

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-02-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 --- Comment #6 from Richard Biener --- The patch doesn't really work, it regresses some AVX512 stuff in i386.exp, notably FAIL: gcc.target/i386/avx512vl-vdivps-2.c (internal compiler error: in vect_get_ vec_defs_for_operand, at

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-02-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 --- Comment #5 from Richard Biener --- diff --git a/gcc/tree-vect-patterns.cc b/gcc/tree-vect-patterns.cc index 217bdfd7045..ff9a628321f 100644 --- a/gcc/tree-vect-patterns.cc +++ b/gcc/tree-vect-patterns.cc @@ -4450,18 +4450,16 @@

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-02-20 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-02-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 --- Comment #3 from Andrew Pinski --- IR in the bool case: _1 = pb[i_13]; iftmp.0_7 = a[i_13]; iftmp.0_6 = b[i_13]; iftmp.0_3 = _1 ? iftmp.0_7 : iftmp.0_6; c[i_13] = iftmp.0_3; IR in the char case: _1 = pc[i_13]; iftmp.1_7 =

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-02-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-02-18 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 --- Comment #2 from Segher Boessenkool --- This is exactly the same as the char case here though, so it is a bit silly that we miss it :-)

[Bug tree-optimization/104595] unvectorized loop due to bool condition loaded from memory

2022-02-18 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|