[Bug rtl-optimization/121920] ICE (SIGSEGV, NULL-ptr reference) in rtl_ssa::clobber_info::recompute_group() with -O2 -std=gnu11 -fstack-protector-strong on mips64el

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121920 --- Comment #6 from Richard Biener --- So - can you confirm this is now fixed?

[Bug tree-optimization/121921] `e - (e - b)` for pointers is not optimized to just b

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121921 --- Comment #3 from Richard Biener --- We only have e + (b - e): /* Pattern match tem1 = (long) ptr1; tem2 = (long) ptr2; tem3 = tem2 - tem1; tem4 = (unsigned long) tem3; tem5 = ptr1 + tem4; and produce tem5 = p

[Bug libstdc++/121917] [16 Regression] ranges::shuffle incorrectly requires its arguments to model sized_sentinel_for

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121917 Richard Biener changed: What|Removed |Added Target Milestone|--- |16.0

[Bug ipa/92538] Proposal for IPA init() constant propagation

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
, ||rguenth at gcc dot gnu.org --- Comment #8 from Richard Biener --- This came up in some x264 discussion again.

[Bug ipa/121909] missed partial inlining

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121909 Richard Biener changed: What|Removed |Added Keywords||missed-optimization --- Comment #2 fro

[Bug tree-optimization/121908] Hot loop in xz not vectorized

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121908 Richard Biener changed: What|Removed |Added Blocks||53947 Keywords|

[Bug tree-optimization/121595] fabs(a+0.0) -> fabs(a) for non trapping case

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121595 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/121829] [13/14/15 Regression] Trigger error at -O2/O3 during GIMPLE pass: optimized with asm goto with lable being the next statement and loop afterwards

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121829 Richard Biener changed: What|Removed |Added Summary|[13/14/15/16 Regression]|[13/14/15 Regression]

[Bug tree-optimization/121703] [16 Regression] ubsan: load of value 32695, which is not a valid value for type 'internal_fn' in tree-vectorizer.h

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121703 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/121904] [16 Regression] ICE in as_a, at value-range.h:668 since r16-1400-g2e4688a7202

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121904 Richard Biener changed: What|Removed |Added Target Milestone|--- |16.0 CC|

[Bug tree-optimization/121870] [13/14/15 Regression] ICE when two calls to noreturn function via function pointer in global variable

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121870 Richard Biener changed: What|Removed |Added Known to work||16.0 Priority|P3

[Bug tree-optimization/121894] SRA (and DSE) vs. -ftrivial-auto-var-init=

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121894 Richard Biener changed: What|Removed |Added Keywords||missed-optimization --- Comment #3 fro

[Bug c++/121893] [16 Regression] [Modules] ICE when using modules + ranges. regression in gcc 16.0

2025-09-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121893 Richard Biener changed: What|Removed |Added Target Milestone|--- |16.0

[Bug c++/121891] [14/15/16 Regression] ICE: cp_emit_debug_info_for_using(tree_node*, tree_node*) gcc/cp/name-lookup.cc:9240

2025-09-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121891 Richard Biener changed: What|Removed |Added Target Milestone|--- |14.4

[Bug tree-optimization/121881] cselim does not handle some stuff sometimes

2025-09-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121881 --- Comment #3 from Richard Biener --- You can't generally do this when alias-sets differ (unless one is zero, which you can then pick). See the various redundant store issues - you need to second guess all following reads valid with either ver

[Bug diagnostics/121876] [16 Regression] recursive ICE in ICE handling with nested diagnostics, in set_diagnostic_buffer, at buffering.cc:49

2025-09-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121876 Richard Biener changed: What|Removed |Added Target Milestone|--- |16.0

[Bug c++/121889] [16 regression] ice in discriminator_for_local_entity, at cp/mangle.cc:2293

2025-09-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121889 Richard Biener changed: What|Removed |Added Target Milestone|--- |16.0

[Bug tree-optimization/121870] [13/14/15/16 Regression] ICE when two calls to noreturn function via function pointer in global variable

2025-09-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #3 from Richard Biener --- So we're manually deleting dead EH and abnormal edges which can leave stmts to fixup unreachable. We can deal with this here.

[Bug other/121868] Test report for bugzilla issue

2025-09-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121868 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug other/121863] Filing new bugs doesn't work

2025-09-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121863 --- Comment #3 from Richard Biener --- I do still see any submit turned useless when anubis happens to run on it (but usually and re-submit fixes that then).

[Bug c++/121862] [14/15/16 Regression] ICE: tree check: accessed elt 1 of 'tree_vec' with 0 elts in expand_template_argument_pack, at cp/pt.cc:4474

2025-09-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121862 Richard Biener changed: What|Removed |Added Priority|P3 |P4

[Bug target/121861] -Os doesn't inline truncf/trunc

2025-09-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121861 Richard Biener changed: What|Removed |Added Target||x86_64-*-* Resolution|---

[Bug tree-optimization/121844] [13/14/15 Regression] RISCV rv64gcv: Trigger error at -Os during GIMPLE pass: ivopts

2025-09-10 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121844 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug tree-optimization/121844] [13/14/15 Regression] RISCV rv64gcv: Trigger error at -Os during GIMPLE pass: ivopts

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121844 Richard Biener changed: What|Removed |Added Known to work||16.0 Priority|P3

[Bug tree-optimization/121844] [15/16 Regression] RISCV rv64gcv: Trigger error at -Os during GIMPLE pass: ivopts

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121844 --- Comment #3 from Richard Biener --- Hmm, it isn't enough to re-order IV creation - we are refering to IP_NORMAL pos during use rewriting as well: #1 0x02013101 in stmt_after_ip_normal_pos (loop=0x76e4a200, stmt=) at /space/r

[Bug tree-optimization/121830] [16 regression] ice in vect_build_slp_tree_2, again ?

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121830 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/121844] [15/16 Regression] RISCV rv64gcv: Trigger error at -Os during GIMPLE pass: ivopts

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
Blocks||107997 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #2 from Richard Biener --- ip_normal_pos doesn't handle loops where the exit block isn't

[Bug tree-optimization/121830] [16 regression] ice in vect_build_slp_tree_2, again ?

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121830 --- Comment #5 from Richard Biener --- Thanks for the interesting testcases. Here we have a double AND reduction which involves another nested cycle operand.

[Bug rtl-optimization/121852] wrong code at -O2 with "-fno-gcse" on x86_64-linux-gnu

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121852 Richard Biener changed: What|Removed |Added Keywords||wrong-code Status|UNCONFIR

[Bug target/121853] conversion from __bf16 to float is prohibitively expensive

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121853 Richard Biener changed: What|Removed |Added Component|c++ |target Target|

[Bug tree-optimization/121829] [13/14/15/16 Regression] Trigger error at -O2/O3 during GIMPLE pass: optimized with asm goto with lable being the next statement and loop afterwards

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121829 --- Comment #4 from Richard Biener --- (In reply to Richard Biener from comment #3) > I belive it's redirect_edge_and_branch called from split_edge done during > vectorizer peeling. We are splitting the loop entry edge which produces > the lab

[Bug tree-optimization/121829] [13/14/15/16 Regression] Trigger error at -O2/O3 during GIMPLE pass: optimized with asm goto with lable being the next statement and loop afterwards

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121829 --- Comment #3 from Richard Biener --- I belive it's redirect_edge_and_branch called from split_edge done during vectorizer peeling. We are splitting the loop entry edge which produces the label copy and then we remove the (temporary) forwarde

[Bug tree-optimization/121830] [16 regression] ice in vect_build_slp_tree_2, again ?

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121830 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug c++/121814] Optimization has changed the code behavior

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
|NEW CC||hubicka at gcc dot gnu.org, ||rguenth at gcc dot gnu.org Keywords||wrong-code Last reconfirmed||2025-09-08

[Bug middle-end/121831] [15/16 regression] ICE when building melonds-1.0 with LTO (expand_expr_real_2, at expr.cc:9779)

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121831 Richard Biener changed: What|Removed |Added Priority|P3 |P2

[Bug tree-optimization/121829] [13/14/15/16 Regression] Trigger error at -O2/O3 during GIMPLE pass: optimized with asm goto with lable being the next statement and loop afterwards

2025-09-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener --- Let me have a look.

[Bug target/121802] gcc.target/powerpc/vsx-vectorize-* FAILS starting with r16-3515-g3f868fb150957e

2025-09-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Ever confirmed|0 |1

[Bug middle-end/121806] [16 Regression] Uninitialised value in gcc.cc:2932's for_each_path causes gfortran compile fails since r16-3354-gf23bac62f46fc2

2025-09-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121806 Richard Biener changed: What|Removed |Added Target Milestone|--- |16.0

[Bug target/121802] gcc.target/powerpc/vsx-vectorize-* FAILS starting with r16-3515-g3f868fb150957e

2025-09-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121802 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/73550] Another wrong -Wmaybe-uninitialized warning in switch statement

2025-09-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=73550 --- Comment #15 from Richard Biener --- (In reply to Andrew Pinski from comment #14) > Seems like if we have: > ((code_9(D) == 2)) > OR ((code_9(D) >= 3)) > > this could be simplified down to ((code_9(D) >= 2)) > > But I don't kn

[Bug tree-optimization/73550] Another wrong -Wmaybe-uninitialized warning in switch statement

2025-09-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=73550 --- Comment #16 from Richard Biener --- Re-working the predicates to include a new meta-operation IN_RANGE might help overall efficiency and recovery (IN_RANGE having an irange operand) and might allow to leverage ranger for the "un-obfuscation".

[Bug tree-optimization/121792] missing PRE due to exceptions, partial PRE insertion too restricted

2025-09-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
CC||rguenth at gcc dot gnu.org --- Comment #1 from Richard Biener --- Well, it's not a missing PRE - it's how PRE works. The load from pid.t is only a partial redundancy on the path from get_pid () if it is actually loaded, but it isn't on t

[Bug rtl-optimization/121757] [15/16 Regression] ICE in rtl_ssa::clobber_info::recompute_group

2025-09-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121757 --- Comment #11 from Richard Biener --- Created attachment 62315 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62315&action=edit testcase This is the a.ltrans0.o object. Reproduce with ~/obj-arm-g/gcc> ./lto1 -quiet -dumpbase ./a.ltran

[Bug rtl-optimization/121757] [15/16 Regression] ICE in rtl_ssa::clobber_info::recompute_group

2025-09-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121757 --- Comment #12 from Richard Biener --- (In reply to Richard Biener from comment #11) > Created attachment 62315 [details] > testcase > > This is the a.ltrans0.o object. Reproduce with > > ~/obj-arm-g/gcc> ./lto1 -quiet -dumpbase ./a.ltrans0.

[Bug rtl-optimization/121757] [15/16 Regression] ICE in rtl_ssa::clobber_info::recompute_group

2025-09-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121757 --- Comment #10 from Richard Biener --- Backtrace from a cross: #0 fancy_abort (file=0x34e19d0 "/home/rguenther/src/gcc/gcc/rtl-ssa/accesses.cc", line=53, function=0x34e1c40 "recompute_group") at /home/rguenther/src/gcc/gcc/diagnosti

[Bug target/121802] gcc.target/powerpc/vsx-vectorize-* FAILS starting with r16-3515-g3f868fb150957e

2025-09-05 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121802 --- Comment #1 from Richard Biener --- Likely the PPC cost models fault. I'll have a quick look.

[Bug tree-optimization/121768] [16 Regression] ICE on valid code at -O{2,3} with "-fno-tree-dce -fno-inline" on x86_64-linux-gnu: in vect_build_slp_tree_2, at tree-vect-slp.cc:3217

2025-09-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121768 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug driver/121788] asm_debug spec mis-ordering --debug-prefix-map options

2025-09-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121788 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/121787] [Trunk] RISC-V rv64gcv: crash at -O1/2/3

2025-09-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121787 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Target|

[Bug tree-optimization/121737] vectorizer part of the loop but not all of it

2025-09-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121737 --- Comment #5 from Richard Biener --- A related but quite similar issue is that pattern recognition can break the ability to detect the reduction operation when it's split across multiple stmts.

[Bug tree-optimization/121685] Failure to vectorize because of failed invariant motion

2025-09-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121685 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/61247] vectorization fails for unsigned is used for IV but casted to int before using as the index (and then casted for internal type)

2025-09-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61247 Richard Biener changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|rguenth at gcc

[Bug tree-optimization/121740] missed load fre/pre with std::optional

2025-09-04 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121740 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/121768] ICE on valid code at -O{2,3} with "-fno-tree-dce -fno-inline" on x86_64-linux-gnu: in vect_build_slp_tree_2, at tree-vect-slp.cc:3217

2025-09-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
|1 Status|UNCONFIRMED |ASSIGNED Version|unknown |16.0 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #1 from Richard Biener --- t.c:4:10: note: Analyze phi: a_lsm

[Bug tree-optimization/121770] [16 Regression] 5% slowdown of 503.bwaves_r on Aarch64

2025-09-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121770 Richard Biener changed: What|Removed |Added Target Milestone|--- |16.0

[Bug tree-optimization/121756] [16 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: verify_ssa failed

2025-09-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121756 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/121758] [16 Regression] ice with -O1 -ftree-loop-vectorize -ftree-loop-distribution -fno-strict-aliasing

2025-09-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121758 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/121767] [16 Regression] Vectorizer ICE at tree-vect-slp.cc:2857

2025-09-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121767 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/121767] [16 Regression] Vectorizer ICE at tree-vect-slp.cc:2857

2025-09-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
|1 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Last reconfirmed||2025-09-03 Target Milestone|--- |16.0 --- Comment #1 from Richard Biener --- t.ii:257:34: note: Analyze phi

[Bug target/121766] [16 regression] Regressions in Snappy workload for -mcpu=neoverse-v2 after modifying costing hooks

2025-09-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121766 Richard Biener changed: What|Removed |Added Target Milestone|--- |16.0

[Bug tree-optimization/121756] [16 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: verify_ssa failed

2025-09-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121756 --- Comment #3 from Richard Biener --- So we chose to sink the store to after an exit of an irreducible region (which does not contain a VDEF), but then select_best_block moves the location up _into_ the irreducible region. A situation /

[Bug tree-optimization/121758] [16 Regression] ice with -O1 -ftree-loop-vectorize -ftree-loop-distribution -fno-strict-aliasing

2025-09-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121758 --- Comment #6 from Richard Biener --- So the issue is that in pattern detection we have t.c:4:10: note: over_widening pattern recognized: patt_27 = (int) patt_17; t.c:4:10: note: extra pattern stmt: patt_17 = patt_19 & 99; t.c:4:10: note:

[Bug tree-optimization/121756] [16 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: verify_ssa failed

2025-09-03 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121756 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug tree-optimization/121758] [16 Regression] ice with -O1 -ftree-loop-vectorize -ftree-loop-distribution -fno-strict-aliasing

2025-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
||2025-09-02 Priority|P3 |P1 Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #5 from Richard Biener --- Confirmed and mine.

[Bug tree-optimization/121753] [16 Regression] Recent vectorizer changes causes ICE in vect_build_slp_tree_2

2025-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121753 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug rtl-optimization/121757] [15/16 Regression] ICE in rtl_ssa::clobber_info::recompute_group

2025-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121757 Richard Biener changed: What|Removed |Added Keywords||ice-on-valid-code, |

[Bug rtl-optimization/121757] New: [15/16 Regression] ICE in rtl_ssa::clobber_info::recompute_group

2025-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- Building qt6-declarative 6.9.2 on armv7 with LTO shows the following: [ 5414s] FAILED: [code=1] lib/qt6/plugins

[Bug tree-optimization/121753] [16 Regression] Recent vectorizer changes causes ICE in vect_build_slp_tree_2

2025-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121753 --- Comment #3 from Richard Biener --- So this is another pattern case breaking reductions, we turn c * 4 into patt_22 = c.0_1 + c.0_1; patt_7 = patt_22 + patt_22; which we cannot handle as reduction.

[Bug tree-optimization/121754] [16 Regression] Vectorizer ICE since r16-3488-gb3355804c7054b

2025-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121754 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/121753] [16 Regression] Recent vectorizer changes causes ICE in vect_build_slp_tree_2

2025-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
||2025-09-02 Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener --- Mine.

[Bug tree-optimization/121754] [16 Regression] Vectorizer ICE since r16-3488-gb3355804c7054b

2025-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121754 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug tree-optimization/121740] missed load fre/pre with std::optional

2025-09-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #4 from Richard Biener --- (In reply to Andrew Pinski from comment #3) > (In reply to Richard Biener from comment

[Bug tree-optimization/101641] Bogus redundant store removal

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101641 --- Comment #11 from Richard Biener --- (In reply to Segher Boessenkool from comment #10) [...] > > > > where set_noop_p for two MEMs simply dispatches to > > > > rtx_equal_p && !side_effects_p. > > > > > > Yes. Which is completely correct,

[Bug tree-optimization/121744] Testing std::bitset isn't vectorized optimally

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121744 Richard Biener changed: What|Removed |Added Summary|Testing std::bitset isn't |Testing std::bitset isn't

[Bug c++/121746] New: ICE in fold_nonarray_ctor_reference

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- The testcase ICEs as follows: g++ -S ccUHHH1f.C -std=c++23 [...] ../src/ibkr/client/EClient.h:137:37: internal compiler error: Segmentation fault 0x22f8cff internal_error(char const

[Bug lto/121747] Bus error with -flto on sun4v

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121747 --- Comment #2 from Richard Biener --- Possibly some libiberty/simple-object-* issue.

[Bug c++/121746] ICE in fold_nonarray_ctor_reference

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121746 --- Comment #1 from Richard Biener --- Created attachment 62258 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62258&action=edit preprocessed source

[Bug tree-optimization/121744] Testing std::bitset isn't vectorized

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121744 --- Comment #1 from Richard Biener --- Another inefficency in this testcase is that, of course, DR analysis of the std::bitset load fails, as { 0, +, 1 } >> 6 isn't affine. So we get an (eumlated) gather that we fail to fully untangle into sens

[Bug tree-optimization/121744] Testing std::bitset isn't vectorized

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121744 Richard Biener changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org

[Bug tree-optimization/121744] New: Testing std::bitset isn't vectorized

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- 541.leela_r contains sth along the following: #include #include class Foo { public: void fun (std::bitset<21*21>& blacksq); std::vector m_mc

[Bug tree-optimization/121737] vectorizer part of the loop but not all of it

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121737 --- Comment #3 from Richard Biener --- (In reply to Andrew Pinski from comment #2) > (In reply to Richard Biener from comment #1) > > > > What taget were you testing? > > Just aarch64 without SVE enabled. Your dump seems to be without the if p

[Bug tree-optimization/121737] vectorizer part of the loop but not all of it

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
||aarch64, x86-64-*-* Last reconfirmed||2025-09-01 Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #4 from Richard Biener --- Note this might be

[Bug tree-optimization/121740] missed load fre/pre with std::optional

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121740 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org

[Bug tree-optimization/121737] vectorizer part of the loop but not all of it

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121737 Richard Biener changed: What|Removed |Added CC||rguenth at gcc dot gnu.org

[Bug tree-optimization/121730] [13/14/15/16 regression] wrong code at -O1 on x86_64-linux-gnu (generated code hangs) since r11-6188-g0b76990a9d75d9

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121730 Richard Biener changed: What|Removed |Added Target||x86_64-*-* Priority|P3

[Bug c/121729] DFP FP exception flags not raised as expected

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121729 Richard Biener changed: What|Removed |Added Keywords||wrong-code Target|

[Bug tree-optimization/88398] vectorization failure for a small loop to do byte comparison

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88398 Richard Biener changed: What|Removed |Added Target Milestone|--- |15.0 Status|ASSIGNED

[Bug tree-optimization/121726] [15/16 regression] Possible miscompilation with strict aliasing, uint8_t[] to uint64_t*

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121726 Richard Biener changed: What|Removed |Added Status|NEW |ASSIGNED Priority|P3

[Bug tree-optimization/121720] [13/14/15/16 Regression] std::min_element is not optimized at -O2

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Priority|P3 |P2 --- Comment #4 from Richard Biener --- C testcase appreciated. I won't promise anything but to have a closer look (somewhen later).

[Bug tree-optimization/115130] [meta-bug] early break vectorization

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115130 Bug 115130 depends on bug 88398, which changed state. Bug 88398 Summary: vectorization failure for a small loop to do byte comparison https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88398 What|Removed |Added -

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 88398, which changed state. Bug 88398 Summary: vectorization failure for a small loop to do byte comparison https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88398 What|Removed |Added ---

[Bug middle-end/26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 88398, which changed state. Bug 88398 Summary: vectorization failure for a small loop to do byte comparison https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88398 What|Removed |Added ---

[Bug tree-optimization/101641] Bogus redundant store removal

2025-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101641 --- Comment #9 from Richard Biener --- (In reply to Segher Boessenkool from comment #8) > Hi! > > (In reply to Richard Biener from comment #7) > > Wow, and this time it's even combine coming into play! > > But it is just something that happens

[Bug tree-optimization/61247] vectorization fails for unsigned is used for IV but casted to int before using as the index (and then casted for internal type)

2025-08-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61247 --- Comment #7 from Richard Biener --- The earlier variants have the known issue that SCEV itself cannot register additional 'assumptions', niter analysis does not need any there, but the fact that 'i' and 'j' don't wrap in the comment#4 testcase

[Bug tree-optimization/61247] vectorization fails for unsigned is used for IV but casted to int before using as the index (and then casted for internal type)

2025-08-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61247 --- Comment #6 from Richard Biener --- (In reply to Richard Biener from comment #5) > int foo (int *p, unsigned long sz) > { > int sum = 0; > for (unsigned i = 0; i < sz; ++i) > sum += p[i]; > return sum; > } > > is a simpler variant.

[Bug tree-optimization/121714] memcmp == 0 optimization should use MAX_FIXED_MODE_SIZE rather than word_mode

2025-08-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121714 --- Comment #3 from Richard Biener --- I wonder whether the by-pieces infrastructure can be used to query both target limits and mode to use? If not, I wonder how difficult it would be to make it so. Note any > 1 gimple stmt replacement would

[Bug tree-optimization/121712] not removing loop when iterates once only

2025-08-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
|1 Status|UNCONFIRMED |NEW CC||rguenth at gcc dot gnu.org --- Comment #1 from Richard Biener --- Estimating # of iterations of loop 1 Analyzing # of iterations of loop 1 exit condition [a_9(D) + 4

[Bug rtl-optimization/121704] [14/15/16 regression] wrong code at -O3 with "-fno-gcse -fno-ipa-cp" on x86_64-linux-gnu

2025-08-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121704 Richard Biener changed: What|Removed |Added Version|unknown |16.0 Last reconfirmed|

[Bug tree-optimization/121703] [16 Regression] ubsan: load of value 32695, which is not a valid value for type 'internal_fn' in tree-vectorizer.h

2025-08-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Hmm, yeah ... it's copying uninitialized data to another object where it's supp

[Bug tree-optimization/61247] vectorization fails for unsigned is used for IV but casted to int before using as the index (and then casted for internal type)

2025-08-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #5 from Richard Biener --- int foo (int *p, unsigned long sz) { int sum = 0; for (unsigned i = 0; i < sz; ++i) sum += p[i]; return sum; } is a simpler variant. What works is that we set up to version the loop with sz_

  1   2   3   4   5   6   7   8   9   10   >