[Bug tree-optimization/118466] Not removing bounds checking enough to vectorize

2025-01-18 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118466 --- Comment #4 from Sam James --- (In reply to Eric Gallager from comment #3) > Removing bounds checking seems like a dangerous idea in general... We do that in plenty of cases. It's provably false here. If anything, optimising bound checks bet

[Bug tree-optimization/118466] Not removing bounds checking enough to vectorize

2025-01-17 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118466 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Commen

[Bug tree-optimization/118466] Not removing bounds checking enough to vectorize

2025-01-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118466 --- Comment #2 from Andrew Pinski --- (In reply to Richard Biener from comment #1) > Hmm, early-break should handle this in theory. It does: > > > ./cc1 -quiet t4.c -O3 -msse4 -fopt-info-vec -fdump-tree-optimized > t4.c:3:24: optimized: loop v

[Bug tree-optimization/118466] Not removing bounds checking enough to vectorize

2025-01-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118466 --- Comment #1 from Richard Biener --- Hmm, early-break should handle this in theory. It does: > ./cc1 -quiet t4.c -O3 -msse4 -fopt-info-vec -fdump-tree-optimized t4.c:3:24: optimized: loop vectorized using 16 byte vectors t4.c:3:24: optimized