[Bug tree-optimization/120268] Missed removing loop of setting zero when dereference pointer (memset) at -O3 -fallow-store-data-races

2025-05-26 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120268 --- Comment #5 from Kael Franco --- (In reply to Kael Franco from comment #4) > (In reply to Andrew Pinski from comment #1) > > This is only valid with -fallow-store-data-races. Otherwise you can > > introduce a race condition according to the C

[Bug tree-optimization/120268] Missed removing loop of setting zero when dereference pointer (memset) at -O3 -fallow-store-data-races

2025-05-26 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120268 --- Comment #4 from Kael Franco --- (In reply to Andrew Pinski from comment #1) > This is only valid with -fallow-store-data-races. Otherwise you can > introduce a race condition according to the C/C++11 memory model. I don't think -fallow-stor

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2025-05-25 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 Kael Franco changed: What|Removed |Added CC||kaelfandrew at gmail dot com --- Comment #

[Bug cobol/120422] New: Reducing strcmp() and strlen() gcc/cobol/genapi.cc at f3a62dcfc96cb24127385a7e668133e037b6085d

2025-05-24 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120422 Bug ID: 120422 Summary: Reducing strcmp() and strlen() gcc/cobol/genapi.cc at f3a62dcfc96cb24127385a7e668133e037b6085d Product: gcc Version: 16.0 Status: UNCONFIRMED

[Bug ada/120420] Improving __gnat_decode() gcc/ada/adadecode.c

2025-05-23 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120420 --- Comment #1 from Kael Franco --- Created attachment 61508 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61508&action=edit Godcolt C code

[Bug ada/120420] New: Improving __gnat_decode() gcc/ada/adadecode.c

2025-05-23 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120420 Bug ID: 120420 Summary: Improving __gnat_decode() gcc/ada/adadecode.c Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ad

[Bug tree-optimization/120408] New: Missed memset (len + 1) tree build_string() in gcc/tree.cc at 98575a51f588428a8c5c9d7c28d473c4a22caa7e

2025-05-22 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120408 Bug ID: 120408 Summary: Missed memset (len + 1) tree build_string() in gcc/tree.cc at 98575a51f588428a8c5c9d7c28d473c4a22caa7e Product: gcc Version: 16.0

[Bug c/120382] ICE with hardbool attribute and undeclared variable

2025-05-21 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120382 Kael Franco changed: What|Removed |Added CC||kaelfandrew at gmail dot com --- Comment

[Bug tree-optimization/31313] consecutive strcmps are not merged

2025-05-18 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31313 Kael Franco changed: What|Removed |Added CC||kaelfandrew at gmail dot com --- Comment #

[Bug tree-optimization/115423] Inlined strcmp optimizes poorly

2025-05-17 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115423 Kael Franco changed: What|Removed |Added CC||kaelfandrew at gmail dot com --- Comment

[Bug tree-optimization/120317] Missed DCE with __attribute__((const)) bijection function

2025-05-16 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120317 Kael Franco changed: What|Removed |Added Attachment #61446|0 |1 is obsolete|

[Bug tree-optimization/120317] New: Missed DCE with __attribute__((const)) bijection function

2025-05-16 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120317 Bug ID: 120317 Summary: Missed DCE with __attribute__((const)) bijection function Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Pri

[Bug tree-optimization/120296] New: Missed VRP with __builtin_popcount() when bitshift with __builtin_{ctzg, clzg}

2025-05-15 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120296 Bug ID: 120296 Summary: Missed VRP with __builtin_popcount() when bitshift with __builtin_{ctzg, clzg} Product: gcc Version: 16.0 Status: UNCONFIRMED Severity:

[Bug tree-optimization/120294] New: Missed DCE with xor when emulating __builtin_ctzg() with __builtin_ctz()

2025-05-15 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120294 Bug ID: 120294 Summary: Missed DCE with xor when emulating __builtin_ctzg() with __builtin_ctz() Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: norma

[Bug tree-optimization/120279] Missed DCE for __builtin_{clzg,ctzg} when bitshift

2025-05-15 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120279 --- Comment #2 from Kael Franco --- (In reply to Richard Biener from comment #1) > I'm not sure what you are after? That in f1() the earlier of both shifts > can be removed? Correct.

[Bug rtl-optimization/120279] New: Missed DCE for __builtin_{clzg,ctzg} when bitshift

2025-05-14 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120279 Bug ID: 120279 Summary: Missed DCE for __builtin_{clzg,ctzg} when bitshift Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Componen

[Bug tree-optimization/120268] New: Missed removing loop of setting zero when dereference pointer (memset)

2025-05-13 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120268 Bug ID: 120268 Summary: Missed removing loop of setting zero when dereference pointer (memset) Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/120208] -Wmaybe-uninitialized with -O2 obviously wrong

2025-05-11 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120208 Kael Franco changed: What|Removed |Added Attachment #61399|0 |1 is obsolete|

[Bug tree-optimization/120208] -Wmaybe-uninitialized with -O2 obviously wrong

2025-05-10 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120208 Kael Franco changed: What|Removed |Added Attachment #61394|0 |1 is obsolete|

[Bug tree-optimization/120208] -Wmaybe-uninitialized with -O2 obviously wrong

2025-05-10 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120208 Kael Franco changed: What|Removed |Added CC||kaelfandrew at gmail dot com --- Comment

[Bug tree-optimization/120038] New: Missed combining shr and shrx in collatz_f1()

2025-04-30 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120038 Bug ID: 120038 Summary: Missed combining shr and shrx in collatz_f1() Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tr

[Bug jit/119700] New: Add va_list and other va_* functions in JIT

2025-04-09 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119700 Bug ID: 119700 Summary: Add va_list and other va_* functions in JIT Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit

[Bug tree-optimization/119470] Missed strlen despite unreachable() in noinline increment function

2025-03-25 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119470 --- Comment #2 from Kael Franco --- Created attachment 60884 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60884&action=edit -fdump-tree-optimized

[Bug tree-optimization/119470] Missed strlen despite unreachable() in noinline increment function

2025-03-25 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119470 --- Comment #1 from Kael Franco --- Created attachment 60883 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60883&action=edit -fdump-tree-original

[Bug tree-optimization/119470] New: Missed strlen despite unreachable() in noinline increment function

2025-03-25 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119470 Bug ID: 119470 Summary: Missed strlen despite unreachable() in noinline increment function Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/119431] Missed strlen when cmp to NUL forwards with increments

2025-03-22 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119431 --- Comment #3 from Kael Franco --- Bug also reported to Clang: https://github.com/llvm/llvm-project/issues/132578

[Bug tree-optimization/119431] Missed strlen when cmp to NUL forwards with increments

2025-03-22 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119431 --- Comment #2 from Kael Franco --- Flags were -O3

[Bug tree-optimization/119431] Missed strlen when cmp to NUL forwards with increments

2025-03-22 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119431 --- Comment #1 from Kael Franco --- Created attachment 60855 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60855&action=edit -fdump-tree-optimized

[Bug tree-optimization/119431] New: Missed strlen when cmp to NUL forwards with increments

2025-03-22 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119431 Bug ID: 119431 Summary: Missed strlen when cmp to NUL forwards with increments Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Co

[Bug tree-optimization/119262] Missed vectorize loop within bitshift when using one bool rather than two

2025-03-12 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119262 --- Comment #1 from Kael Franco --- Created attachment 60733 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60733&action=edit Generated assembly

[Bug tree-optimization/119262] New: Missed vectorize loop within bitshift when using one bool rather than two

2025-03-12 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119262 Bug ID: 119262 Summary: Missed vectorize loop within bitshift when using one bool rather than two Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: no

[Bug tree-optimization/119223] GCC does not optimize with AVX in bitshift with if condition

2025-03-11 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119223 --- Comment #5 from Kael Franco --- Created attachment 60714 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60714&action=edit Test program #2 -fdump-tree-optimized

[Bug tree-optimization/119223] GCC does not optimize with AVX in bitshift with if condition

2025-03-11 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119223 --- Comment #3 from Kael Franco --- Created attachment 60712 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60712&action=edit Test program #1 -fdump-tree-optimized

[Bug tree-optimization/119223] New: GCC does not optimize with AVX in bitshift with if condition

2025-03-11 Thread kaelfandrew at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119223 Bug ID: 119223 Summary: GCC does not optimize with AVX in bitshift with if condition Product: gcc Version: 14.2.0 Status: UNCONFIRMED Severity: normal