[Bug target/118320] [14/15 Regression] internal compiler error: Segmentation fault in aarch64-ldp-fusion.cc

2025-01-09 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118320 --- Comment #8 from Alex Coplan --- Sorry, I'm now away until Tuesday 11th Feb so likely won't be able to look at this before then

[Bug tree-optimization/117790] [14/15 regression] Early break vectorization corrupts profile info

2025-01-06 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117790 Alex Coplan changed: What|Removed |Added Keywords||patch URL|

[Bug tree-optimization/103680] Jump threading and switch corrupts profile

2025-01-02 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103680 Alex Coplan changed: What|Removed |Added CC||acoplan at gcc dot gnu.org --- Comment

[Bug tree-optimization/118111] New: profile_estimate builds inconsistent profile for gcc.dg/pr109417.c

2024-12-18 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- I noticed that profile_estimate builds an inconsistent profile for this testcase: ./xgcc -B . -c ~/toolchain/src/gcc

[Bug tree-optimization/117790] Early break vectorization corrupts profile info

2024-11-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117790 Alex Coplan changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org

[Bug tree-optimization/117790] New: Early break vectorization corrupts profile info

2024-11-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following loop (testcase modified from gcc.dg/tree-ssa/cunroll-14.c): $ cat t.c int a[100]; void f() { for (int i = 0; i < 100 && a[i]; i

[Bug rtl-optimization/117476] [15 regression] bad generated code at -O1 since r15-4991-g69bd93c167fefb

2024-11-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117476 Alex Coplan changed: What|Removed |Added CC||acoplan at gcc dot gnu.org --- Comment

[Bug target/117449] New: [15 Regression] ICE in gen_reg_rtx on aarch64 via aarch64_emit_opt_vec_rotate

2024-11-05 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following fails (reduced from perlbench_r from SPEC CPU 2017): $ cat t.c unsigned long *a; int i; void f

[Bug rtl-optimization/116783] Wrong code at -O2 with late pair fusion pass (wrong alias analysis)

2024-10-31 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116783 Alex Coplan changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug rtl-optimization/116783] [14 Regression] Wrong code at -O2 with late pair fusion pass (wrong alias analysis)

2024-10-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116783 --- Comment #8 from Alex Coplan --- Should be fixed everywhere, I'll leave this open for a bit until we get confirmation that this fixes the Debian package build with GCC 14, though.

[Bug rtl-optimization/116783] [14 Regression] Wrong code at -O2 with late pair fusion pass (wrong alias analysis)

2024-10-21 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116783 Alex Coplan changed: What|Removed |Added Summary|[14/15 Regression] Wrong|[14 Regression] Wrong code

[Bug testsuite/116683] new test g++.dg/ext/pragma-unroll-lambda-lto.C from r15-3585-g9759f6299d9633 fails

2024-10-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116683 Alex Coplan changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug testsuite/116683] new test g++.dg/ext/pragma-unroll-lambda-lto.C from r15-3585-g9759f6299d9633 fails

2024-09-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116683 --- Comment #5 from Alex Coplan --- Ah, so the problem seems to be that we're scanning for "Unrolled loop 3 times" appearing exactly once in the dump, but on powerpc it appears twice; that is because the loop in main gets unrolled too (presumabl

[Bug testsuite/116683] new test g++.dg/ext/pragma-unroll-lambda-lto.C from r15-3585-g9759f6299d9633 fails

2024-09-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116683 Alex Coplan changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org

[Bug testsuite/116683] new test g++.dg/ext/pragma-unroll-lambda-lto.C from r15-3585-g9759f6299d9633 fails

2024-09-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116683 --- Comment #3 from Alex Coplan --- Sorry for the delay in looking into this. So it looks like the unrolling works as expected without LTO, at least I see: ;; Unrolled loop 3 times, constant # of iterations 26 insns in the dump with a powerpc

[Bug rtl-optimization/116783] [14/15 Regression] Wrong code at -O2 with late pair fusion pass (wrong alias analysis)

2024-09-20 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116783 --- Comment #4 from Alex Coplan --- Testing a fix for the trunk.

[Bug rtl-optimization/116783] [14/15 Regression] Wrong code at -O2 with late pair fusion pass (wrong alias analysis)

2024-09-20 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116783 Alex Coplan changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org

[Bug rtl-optimization/116783] New: [14/15 Regression] Wrong code at -O2 with late pair fusion pass (wrong alias analysis)

2024-09-19 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- Created attachment 59150 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59150&acti

[Bug libstdc++/116140] [15 Regression] 5-35% slowdown of 483.xalancbmk and 523.xalancbmk_r since r15-2356-ge69456ff9a54ba

2024-09-11 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116140 --- Comment #14 from Alex Coplan --- This should be largely fixed now (and in a position to get further improvements from vectorisation further down the line), perhaps folks that monitor x86_64 performance can confirm if they see the expected im

[Bug tree-optimization/116674] [15 regression] ICE in vectorizable_simd_clone_call bisected to r15-3509-gd34cda72098867

2024-09-11 Thread acoplan at gcc dot gnu.org via Gcc-bugs
, ||aarch64-linux-gnu Last reconfirmed||2024-09-11 CC||acoplan at gcc dot gnu.org Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2

[Bug target/116600] internal compiler error: in maybe_record_trace_start, at dwarf2cfi.cc:2584 since r7-5127-g827ab47ab1f

2024-09-06 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116600 Alex Coplan changed: What|Removed |Added Summary|internal compiler error: in |internal compiler error: in

[Bug target/116600] internal compiler error: in maybe_record_trace_start, at dwarf2cfi.cc:2584

2024-09-04 Thread acoplan at gcc dot gnu.org via Gcc-bugs
|NEW CC||acoplan at gcc dot gnu.org Last reconfirmed||2024-09-04 --- Comment #2 from Alex Coplan --- Confirmed. ICEs with -O3 -fno-common all the way back to GCC 7.

[Bug tree-optimization/116569] [15 Regression] ICE in to_constant, at poly-int.h:592

2024-09-02 Thread acoplan at gcc dot gnu.org via Gcc-bugs
|UNCONFIRMED |NEW Ever confirmed|0 |1 CC||acoplan at gcc dot gnu.org, ||jschmitz at gcc dot gnu.org --- Comment #1 from Alex Coplan --- Confirmed. Started with r15-3082

[Bug target/116564] [12/13/14/15 Regression] aarch64: gcc hangs when compiling vst2_f64 instrinsic at -O1 and above since r12-4910-g66f206b853

2024-09-02 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116564 Alex Coplan changed: What|Removed |Added Summary|[12/13/14/15 Regression]|[12/13/14/15 Regression]

[Bug target/116564] [12/13/14/15 Regression] aarch64: gcc can't finish when compiling vst2_f64 instrinsic with opt level >= O1

2024-09-02 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116564 --- Comment #2 from Alex Coplan --- Here's a preprocessed testcase (not for the testsuite, just to make it easier to reproduce using only cc1): #pragma GCC aarch64 "arm_neon.h" typedef double float64_t; __extension__ extern __inline void __at

[Bug target/116564] [12/13/14/15 Regression] aarch64: gcc can't finish when compiling vst2_f64 instrinsic with opt level >= O1

2024-09-02 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116564 Alex Coplan changed: What|Removed |Added CC||acoplan at gcc dot gnu.org --- Comment

[Bug libstdc++/116140] [15 Regression] 5-35% slowdown of 483.xalancbmk and 523.xalancbmk_r since r15-2356-ge69456ff9a54ba

2024-08-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116140 --- Comment #9 from Alex Coplan --- I think all except the first patch in the series (C++ patch) have been approved now, so the rest are waiting on review for that: https://gcc.gnu.org/pipermail/gcc-patches/2024-August/661559.html

[Bug testsuite/116522] [15 regression] gcc.dg/ipa/ipa-icf-38.c: error executing dg-final after r15-3254-g3f51f0dc88ec21

2024-08-29 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116522 Alex Coplan changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug testsuite/116522] [15 regression] gcc.dg/ipa/ipa-icf-38.c: error executing dg-final after r15-3254-g3f51f0dc88ec21

2024-08-29 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116522 --- Comment #5 from Alex Coplan --- The following should fix it: diff --git a/gcc/testsuite/lib/scanltranstree.exp b/gcc/testsuite/lib/scanltranstree.exp index a7d4de3765f..3d85813ea2f 100644 --- a/gcc/testsuite/lib/scanltranstree.exp +++ b/gcc

[Bug testsuite/116522] [15 regression] gcc.dg/ipa/ipa-icf-38.c: error executing dg-final after r15-3254-g3f51f0dc88ec21

2024-08-29 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116522 --- Comment #4 from Alex Coplan --- Testing a fix.

[Bug testsuite/116522] [15 regression] gcc.dg/ipa/ipa-icf-38.c: error executing dg-final after r15-3254-g3f51f0dc88ec21

2024-08-29 Thread acoplan at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |acoplan at gcc dot gnu.org --- Comment #3 from Alex Coplan --- Apologies for the breakage, I think this is the usual problem of dg-cmp-results.sh not reporting new ERRORs (which is why I didn't see this in my regression testing). I need to work out a better w

[Bug libstdc++/116140] [15 Regression] 5-35% slowdown of 483.xalancbmk and 523.xalancbmk_r since r15-2356-ge69456ff9a54ba

2024-08-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116140 Alex Coplan changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org

[Bug libstdc++/116140] [15 Regression] 5-35% slowdown of 483.xalancbmk and 523.xalancbmk_r since r15-2356-ge69456ff9a54ba

2024-08-05 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116140 --- Comment #7 from Alex Coplan --- So it turns out the reason #pragma GCC unroll doesn't work under LTO is because we don't propagate the `has_unroll` flag when streaming functions during LTO, so RTL loop2_unroll ends up not running at all. Th

[Bug libstdc++/116140] [15 Regression] 5-35% slowdown of 483.xalancbmk and 523.xalancbmk_r since r15-2356-ge69456ff9a54ba

2024-08-02 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116140 --- Comment #6 from Alex Coplan --- Just to give an update on this, the following testcase shows why adding: #pragma GCC unroll 4 in libstdc++ doesn't immediately seem to help. The testcase is: $ cat lambda.cc template inline Iter my_find(It

[Bug libstdc++/116140] [15 Regression] 5-35% slowdown of 483.xalancbmk and 523.xalancbmk_r since r15-2356-ge69456ff9a54ba

2024-08-01 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116140 --- Comment #5 from Alex Coplan --- Yeah, I'm looking into this as Tamar mentioned above.

[Bug target/114991] [14/15 Regression] AArch64: LDP pass does not handle some structure copies

2024-07-05 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114991 --- Comment #4 from Alex Coplan --- So the following is enough to fix the missed ldp due to alias analysis: diff --git a/gcc/pair-fusion.cc b/gcc/pair-fusion.cc index 31d2c21c88f..ab49d955ccf 100644 --- a/gcc/pair-fusion.cc +++ b/gcc/pair-fusio

[Bug target/114936] [14 Regression] Typo in aarch64-ldp-fusion.cc:combine_reg_notes

2024-07-02 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114936 Alex Coplan changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/115120] New: Bad interaction between ivcanon and early break vectorization

2024-05-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- Consider the following testcase on aarch64: int arr[1024]; int *f() { int i; for (i = 0; i < 1024; i++)

[Bug tree-optimization/113787] [12/13/14/15 Regression] Wrong code at -O with ipa-modref on aarch64

2024-05-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113787 --- Comment #20 from Alex Coplan --- I'd just like to ping this serious wrong code bug. It's unfortunate that this wasn't addressed for the 14.1 release.

[Bug target/114991] [14/15 Regression] AArch64: LDP pass does not handle some structure copies

2024-05-09 Thread acoplan at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |acoplan at gcc dot gnu.org --- Comment #3 from Alex Coplan --- Mine for the aliasing issues/investigation, might be worth splitting off the RA problem to track that separately.

[Bug target/114991] [14/15 Regression] AArch64: LDP pass does not handle some structure copies

2024-05-09 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114991 --- Comment #2 from Alex Coplan --- Here is some analysis on why we miss some of these opportunities in ldp_fusion. So initially in 267r.vregs we have some very clean RTL: 6: r101:DI=sfp:DI-0x40 7: x0:DI=r101:DI 8: call [`g'] argc:0

[Bug target/114991] [14/15 Regression] AArch64: LDP pass does not handle some structure copies

2024-05-09 Thread acoplan at gcc dot gnu.org via Gcc-bugs
|UNCONFIRMED |NEW CC||acoplan at gcc dot gnu.org, ||vmakarov at gcc dot gnu.org Ever confirmed|0 |1 Keywords||missed-optimization, ra

[Bug target/114936] [14 Regression] Typo in aarch64-ldp-fusion.cc:combine_reg_notes

2024-05-08 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114936 Alex Coplan changed: What|Removed |Added Summary|[14/15 Regression] Typo in |[14 Regression] Typo in

[Bug rtl-optimization/114674] [aarch64] ldp_fusion fails to merge 2 strs due to imprecise alignment info

2024-05-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114674 Alex Coplan changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/114936] [14/15 Regression] Typo in aarch64-ldp-fusion.cc:combine_reg_notes

2024-05-03 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114936 Alex Coplan changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org

[Bug target/114936] New: [14/15 Regression] Typo in aarch64-ldp-fusion.cc:combine_reg_notes

2024-05-03 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- aarch64-ldp-fusion.cc:combine_reg_notes has: result = filter_notes (REG_NOTES (i2->rtl ()), res

[Bug rtl-optimization/114924] [11/12/13/14/15 Regression] Wrong update of MEM_EXPR by RTL loop unrolling since r11-2963-gd6a05b494b4b71

2024-05-02 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114924 Alex Coplan changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org

[Bug rtl-optimization/114924] New: [11/12/13/14/15 Regression] Wrong update of MEM_EXPR by RTL loop unrolling since r11-2963-gd6a05b494b4b71

2024-05-02 Thread acoplan at gcc dot gnu.org via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following testcase is reduced from libgomp/testsuite/libgomp.fortran/imperfect

[Bug target/114801] New: [14 Regression] arm: ICE in find_cached_value, at rtx-vector-builder.cc:100 with MVE intrinsics

2024-04-22 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following testcase: #include uint32x4_t test_9() { return vdupq_m_n_u32(vdupq_n_u32(0), 0

[Bug rtl-optimization/114674] [aarch64] ldp_fusion fails to merge 2 strs due to imprecise alignment info

2024-04-10 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114674 Alex Coplan changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org

[Bug rtl-optimization/114674] [aarch64] ldp_fusion fails to merge 2 strs due to imprecise alignment info

2024-04-10 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114674 Alex Coplan changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug rtl-optimization/114674] [aarch64] ldp_fusion fails to merge 2 strs due to imprecise alignment info

2024-04-10 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114674 Alex Coplan changed: What|Removed |Added CC||acoplan at gcc dot gnu.org

[Bug target/114492] Invalid use of gcc_assert (notably in gcc/config/aarch64/aarch64-ldp-fusion.cc)

2024-04-02 Thread acoplan at gcc dot gnu.org via Gcc-bugs
at gcc dot gnu.org |acoplan at gcc dot gnu.org --- Comment #4 from Alex Coplan --- I think these should be OK. In the case of: for (unsigned i = 0; i < changes.length (); i++) gcc_assert (rtl_ssa::restrict_movement_ignoring (*changes[i], is_changing)); I think this is OK because

[Bug target/114323] [14 Regression] MVE vector load intrinsic miscompiled since r14-5622-g4d7647edfd7d98

2024-03-15 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114323 --- Comment #4 from Alex Coplan --- I think the problem is that the arm backend incorrectly sets the const attribute on this builtin, but it can't be const because it reads memory (it should be pure instead): sizes-gimplified unsi

[Bug target/114323] [14 Regression] MVE vector load intrinsic miscompiled since r14-5622-g4d7647edfd7d98

2024-03-13 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114323 --- Comment #1 from Alex Coplan --- Hmm, so in 043t.mergephi1 we have: uint32x4_t foo () { const uint32_t D.13439[4]; uint32x4_t V0; : D.13439 = *.LC0; V0_3 = vld1q_u32 (&D.13439); D.13439 ={v} {CLOBBER(eos)}; return V0_3; } b

[Bug target/114323] New: [14 Regression] MVE vector load intrinsic miscompiled since r14-5622-g4d7647edfd7d98

2024-03-13 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following testcase: #include uint32x4_t foo (void) { uint32x4_t V0 = vld1q_u32(((const uint32_t[4]){1, 2

[Bug middle-end/114291] New: -fcompare-debug failure (length) with -fprofile-use at -O0

2024-03-09 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following is an -fcompare-debug failure that shows up with PGO (here on aarch64-linux-gnu): $ cat t.c void foo() {} int main(void

[Bug target/114284] [14 Regression] arm: Load of volatile short gets miscompiled (loaded twice) since r14-8319

2024-03-08 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114284 --- Comment #3 from Alex Coplan --- I think this has been fixed by r14-9379-ga0e945888d973fc1a4a9d2944aa7e96d2a4d7581

[Bug target/114284] New: [14 Regression] arm: Load of volatile short gets miscompiled (loaded twice)

2024-03-08 Thread acoplan at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following is a wrong code regression in GCC 14: volatile short x; short foo() { return x; } with -march=armv8

[Bug tree-optimization/114193] New: missed early break vectorization of reduction

2024-03-01 Thread acoplan at gcc dot gnu.org via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following loop: int a[1024]; int f(int *x, int n) { int sum = 0; for (int i = 0; i < n; i++) { if (a[i] == 42) br

[Bug tree-optimization/114192] New: scalar code left around following early break vectorization of reduction

2024-03-01 Thread acoplan at gcc dot gnu.org via Gcc-bugs
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- For the following testcase: int a[1024]; int f4(int *x, int n) { int sum = 0; for (int i = 0; i < n

[Bug tree-optimization/111770] predicated loads inactive lane values not modelled

2024-02-22 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111770 --- Comment #4 from Alex Coplan --- (In reply to Richard Biener from comment #3) > As said X + 0. -> X is an invalid transform with FP unless there are no > signed zeros (maybe also problematic with sign-dependent rounding). Yeah, I was thinkin

[Bug tree-optimization/111770] predicated loads inactive lane values not modelled

2024-02-21 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111770 --- Comment #2 from Alex Coplan --- I think to progress this and related cases we need to have .MASK_LOAD defined to zero in the case that the predicate is false (either unconditionally for all targets if possible or otherwise conditionally for

[Bug target/112922] [14 Regression] 465.tonto from SPECFP 2006 fails train run on Aarch64-linux with -O2 and -flto

2024-02-20 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112922 Alex Coplan changed: What|Removed |Added CC||acoplan at gcc dot gnu.org

[Bug target/111677] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes

2024-02-20 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 Alex Coplan changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/111677] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes

2024-02-14 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 Alex Coplan changed: What|Removed |Added Summary|[12 Regression] darktable |darktable build on aarch64

[Bug c++/113658] GCC 14 has incomplete impl for declared feature "cxx_constexpr_string_builtins"

2024-02-13 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113658 Alex Coplan changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/111677] [12 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes

2024-02-12 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #30 from Alex Coplan --- Backport for GCC 12 submitted: https://gcc.gnu.org/pipermail/gcc-patches/2024-February/645415.html

[Bug tree-optimization/113787] [12/13/14 Regression] Wrong code at -O with ipa-modref on aarch64

2024-02-08 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113787 --- Comment #12 from Alex Coplan --- Here is an alternative testcase that also fails in the same way on the GCC 12 and 13 branches: void foo(int x, int y, int z, int d, int *buf) { for(int i = z; i < y-z; ++i) for(int j = 0; j < d; ++j)

[Bug target/111677] [12 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes

2024-02-07 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 Alex Coplan changed: What|Removed |Added Summary|[12/13 Regression] |[12 Regression] darktable

[Bug tree-optimization/113787] [12/13/14 Regression] Wrong code at -O with ipa-modref on aarch64

2024-02-06 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113787 --- Comment #7 from Alex Coplan --- (In reply to Andrew Pinski from comment #6) > (In reply to Jakub Jelinek from comment #5) > > My bisection points to r12-5915-ge93809f62363ba4b233858005aef652fb550e896 > > Which means it is related to bug 110

[Bug tree-optimization/113787] [14 Regression] Wrong code at -O with ipa-modref on aarch64

2024-02-06 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113787 --- Comment #4 from Alex Coplan --- Same with the head of the GCC 12 branch, but I agree it isn't a [14 Regression] as I can reproduce the issue with basepoints/gcc-14, so maybe something was backported to 12/13 that is making it latent on the b

[Bug tree-optimization/113787] [14 Regression] Wrong code at -O with ipa-modref on aarch64

2024-02-06 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113787 --- Comment #3 from Alex Coplan --- (In reply to Jakub Jelinek from comment #1) > Why do you think it is a 14 Regression? > Seems r12-5166 works fine while r12-6600 already doesn't, so that would make > it [12/13/14 Regression], no? Well on the

[Bug tree-optimization/113787] New: [14 Regression] Wrong code at -O with ipa-modref on aarch64

2024-02-06 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The following testcase appears to be miscompiled on the trunk, on aarch64-linux-gnu: $ cat t.c void foo(int x, int y, int z

[Bug middle-end/113705] [14 Regression] ICE in decompose, at wide-int.h:1049 on aarch64-linux-gnu since r14-8680-g2f14c0dbb78985

2024-02-01 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113705 Alex Coplan changed: What|Removed |Added Summary|[14 Regression] ICE in |[14 Regression] ICE in

[Bug middle-end/113705] [14 Regression] ICE in decompose, at wide-int.h:1049 on aarch64-linux-gnu

2024-02-01 Thread acoplan at gcc dot gnu.org via Gcc-bugs
||acoplan at gcc dot gnu.org Last reconfirmed||2024-02-01 Ever confirmed|0 |1 --- Comment #2 from Alex Coplan --- Confirmed. Here is a reduced testcase that ICEs with -O2 on aarch64-linux-gnu: void free

[Bug target/111677] [12/13 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes

2024-01-31 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 Alex Coplan changed: What|Removed |Added Summary|[12/13/14 Regression] |[12/13 Regression] |dar

[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes

2024-01-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #25 from Alex Coplan --- Proposed fix for GCC 13: https://gcc.gnu.org/pipermail/gcc-patches/2024-January/644459.html

[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes

2024-01-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 Alex Coplan changed: What|Removed |Added Keywords||patch --- Comment #24 from Alex Coplan -

[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes

2024-01-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 Alex Coplan changed: What|Removed |Added Keywords|needs-bisection | Known to fail|13.2.1

[Bug target/111677] [12/13 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes

2024-01-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 Alex Coplan changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org

[Bug c++/113658] GCC 14 has incomplete impl for declared feature "cxx_constexpr_string_builtins"

2024-01-30 Thread acoplan at gcc dot gnu.org via Gcc-bugs
|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org --- Comment #5 from Alex Coplan --- (In reply to Jakub Jelinek from comment #3) > Obviously using __has_builtin is much better t

[Bug tree-optimization/113661] New: [14 Regression] xalancbmk miscompiled on aarch64 since r14-7194-g6cb155a6cf3142

2024-01-29 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- xalancbmk (both from SPEC 2006 and SPEC 2017) seems to be miscompiled on aarch64 since r14-7194

[Bug target/113616] [14 Regression] ICE in process_uses_of_deleted_def, at rtl-ssa/changes.cc:252

2024-01-29 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113616 Alex Coplan changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug target/113623] [14 Regression] ICE in aarch64_pair_mem_from_base since r14-6605

2024-01-29 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113623 --- Comment #5 from Alex Coplan --- Indeed passing -mearly-ra=none makes the ICE go away as well.

[Bug target/113623] [14 Regression] ICE in aarch64_pair_mem_from_base since r14-6605

2024-01-29 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113623 Alex Coplan changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|acoplan at gcc

[Bug target/113623] [14 Regression] ICE in aarch64_pair_mem_from_base since r14-6605

2024-01-29 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113623 Alex Coplan changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org --- Comment #

[Bug target/113623] [14 Regression] ICE in aarch64_pair_mem_from_base since r14-6605

2024-01-29 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113623 --- Comment #3 from Alex Coplan --- I think ldp_fusion is exposing a latent issue here. We trip the assert: gcc_assert (aarch64_mem_pair_lanes_operand (mem, pair_mode)); on the RTL: (rr) pr mem (mem/f:V2x8QI (reg:DI 63 v31) [0 +0 S16 A64])

[Bug target/113616] [14 Regression] ICE in process_uses_of_deleted_def, at rtl-ssa/changes.cc:252

2024-01-29 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113616 Alex Coplan changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug target/113623] [14 Regression] ICE in aarch64_pair_mem_from_base since r14-6605

2024-01-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
||14.0 Target||aarch64-*-* Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org --- Comment #2 from Alex Coplan --- Confirmed, mine.

[Bug target/113616] [14 Regression] ICE in process_uses_of_deleted_def, at rtl-ssa/changes.cc:252

2024-01-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113616 --- Comment #3 from Alex Coplan --- Testing a patch.

[Bug target/113618] [14 Regression] AArch64: memmove idiom regression

2024-01-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
|1 Status|UNCONFIRMED |NEW CC||acoplan at gcc dot gnu.org --- Comment #1 from Alex Coplan --- Confirmed. (In reply to Wilco from comment #0) > A possible fix would be to avoid emitting LDP/STP in mem

[Bug target/113616] [14 Regression] ICE in process_uses_of_deleted_def, at rtl-ssa/changes.cc:252

2024-01-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113616 --- Comment #2 from Alex Coplan --- I think the problem is this loop (and others that iterate over debug uses in this way): // Now that we've characterized the defs involved, go through the // debug uses and determine how to update

[Bug target/113616] [14 Regression] ICE in process_uses_of_deleted_def, at rtl-ssa/changes.cc:252

2024-01-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
Target||aarch64-*-* Assignee|unassigned at gcc dot gnu.org |acoplan at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Alex Coplan --- Confirmed, mine.

[Bug target/113613] [14 Regression] Missing ldp/stp optimization since r14-6290-g9f0f7d802482a8

2024-01-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113613 --- Comment #6 from Alex Coplan --- FWIW, if I move ldp_fusion1 before early_ra, with: diff --git a/gcc/config/aarch64/aarch64-passes.def b/gcc/config/aarch64/aarch64-passes.def index 769d48f4faa..3853f6bf7a4 100644 --- a/gcc/config/aarch64/aar

[Bug target/113613] [14 Regression] Missing ldp/stp optimization since r14-6290-g9f0f7d802482a8

2024-01-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113613 --- Comment #5 from Alex Coplan --- It looks like the current ordering of passes is: early_ra sched1 ldp_fusion1 early_remat ISTM that ldp_fusion1 should probably be running before early_ra, but we found that running ldp_fusion1 before sched1

[Bug target/113613] [14 Regression] Missing ldp/stp optimization since r14-6290-g9f0f7d802482a8

2024-01-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113613 Alex Coplan changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|acoplan at gcc

[Bug target/113613] [14 Regression] Missing ldp/stp optimization since r14-6290-g9f0f7d802482a8

2024-01-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113613 Alex Coplan changed: What|Removed |Added CC||rsandifo at gcc dot gnu.org Su

[Bug target/113613] [14 Regression] Missing ldp/stp optimization sometimes

2024-01-26 Thread acoplan at gcc dot gnu.org via Gcc-bugs
dot gnu.org |acoplan at gcc dot gnu.org Last reconfirmed||2024-01-26 Status|UNCONFIRMED |ASSIGNED --- Comment #3 from Alex Coplan --- Confirmed, I'll take a look.

[Bug target/111677] [12/13/14 Regression] darktable build on aarch64 fails with unrecognizable insn due to -fstack-protector changes

2024-01-25 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111677 --- Comment #20 from Alex Coplan --- I think the testcase in #c10 went latent on the 13 branch but the following (reduced from the attachment) still ICEs on the tip of the 13 branch with -Ofast -fopenmp -fstack-protector-strong: typedef struct

  1   2   3   4   5   6   7   >