public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
@ 2024-01-22 10:37 acoplan at gcc dot gnu.org
2024-01-22 10:49 ` [Bug tree-optimization/113539] " tnfchris at gcc dot gnu.org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: acoplan at gcc dot gnu.org @ 2024-01-22 10:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
Bug ID: 113539
Summary: [14 Regression] perlbench miscompiled on aarch64 since
r14-8223-g1c1853a70f
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: acoplan at gcc dot gnu.org
Target Milestone: ---
I'm seeing miscompares of perlbench (both from SPEC CPU 2006 and SPEC CPU 2017)
on aarch64 with recent trunk changes, a bisect pointed to
r14-8223-g1c1853a70f9422169190e65e568dcccbce02d95c :
commit 1c1853a70f9422169190e65e568dcccbce02d95c
Author: Richard Biener <rguenther@suse.de>
Date: Thu Jan 18 10:22:34 2024
Fix memory leak in vect_analyze_loop_form
The miscompares are with the checkspam.pl workload, I see:
*** Miscompare of checkspam.2500.5.25.11.150.1.1.1.1.out
I've seen this with:
-flto=auto -fomit-frame-pointer -O3 -fno-strict-aliasing
and various -mcpu options (at least -mcpu=cortex-a72 and -mcpu=neoverse-v1).
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
@ 2024-01-22 10:49 ` tnfchris at gcc dot gnu.org
2024-01-22 10:54 ` rguenth at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: tnfchris at gcc dot gnu.org @ 2024-01-22 10:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
Tamar Christina <tnfchris at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tnfchris at gcc dot gnu.org
--- Comment #1 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
If that's the commit that's miscomparing then it's probably a bug in
early-break vect.
So I'll take a look.
+ if ((integer_zerop (may_be_zero)
+ || integer_nonzerop (may_be_zero)
is odd though, isn't that basically accepting all values of may_be_zero?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
2024-01-22 10:49 ` [Bug tree-optimization/113539] " tnfchris at gcc dot gnu.org
@ 2024-01-22 10:54 ` rguenth at gcc dot gnu.org
2024-01-22 10:56 ` tnfchris at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-22 10:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.0
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
It accepts all constant known may_be_zero - we can handle all of those later.
I suspect this just triggers a latent issue (vectorizing now simply using
a different exit as canonical in one case).
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
2024-01-22 10:49 ` [Bug tree-optimization/113539] " tnfchris at gcc dot gnu.org
2024-01-22 10:54 ` rguenth at gcc dot gnu.org
@ 2024-01-22 10:56 ` tnfchris at gcc dot gnu.org
2024-01-22 11:03 ` acoplan at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: tnfchris at gcc dot gnu.org @ 2024-01-22 10:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
Tamar Christina <tnfchris at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2024-01-22
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |tnfchris at gcc dot gnu.org
--- Comment #3 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> It accepts all constant known may_be_zero - we can handle all of those later.
>
> I suspect this just triggers a latent issue (vectorizing now simply using
> a different exit as canonical in one case).
Indeed, I'll take a look.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
` (2 preceding siblings ...)
2024-01-22 10:56 ` tnfchris at gcc dot gnu.org
@ 2024-01-22 11:03 ` acoplan at gcc dot gnu.org
2024-01-24 5:04 ` liuhongt at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: acoplan at gcc dot gnu.org @ 2024-01-22 11:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
--- Comment #4 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Reproduces with just -O3 -fno-strict-aliasing FWIW, no LTO or -mcpu needed.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
` (3 preceding siblings ...)
2024-01-22 11:03 ` acoplan at gcc dot gnu.org
@ 2024-01-24 5:04 ` liuhongt at gcc dot gnu.org
2024-01-24 14:08 ` fkastl at suse dot cz
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: liuhongt at gcc dot gnu.org @ 2024-01-24 5:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
Hongtao Liu <liuhongt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |liuhongt at gcc dot gnu.org
--- Comment #5 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
502.gcc_r hangs after r14-8223-g1c1853a70f9422169190e65e568dcccbce02d95cwhen
compiled with -O3 -march=sapphirerapids or -O3 -march=znver4
-mprefer-vector-width=128(or 256). Not sure if they're the same issue.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
` (4 preceding siblings ...)
2024-01-24 5:04 ` liuhongt at gcc dot gnu.org
@ 2024-01-24 14:08 ` fkastl at suse dot cz
2024-01-24 14:10 ` fkastl at suse dot cz
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: fkastl at suse dot cz @ 2024-01-24 14:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
Filip Kastl <fkastl at suse dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fkastl at suse dot cz
--- Comment #6 from Filip Kastl <fkastl at suse dot cz> ---
I just reproduced the same issue on an x86_64 zen3 machine. Running both
500.perlbench_r and 400.perlbench with options -Ofast -march=native
-mtune=native -g -flto=32 results in
*** Miscompare of checkspam.2500.5.25.11.150.1.1.1.1.out
That means this is probably not only an aarch64 issue.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
` (5 preceding siblings ...)
2024-01-24 14:08 ` fkastl at suse dot cz
@ 2024-01-24 14:10 ` fkastl at suse dot cz
2024-01-26 13:29 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: fkastl at suse dot cz @ 2024-01-24 14:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
--- Comment #7 from Filip Kastl <fkastl at suse dot cz> ---
I just reproduced the same issue on an x86_64 zen3 machine. Running both
500.perlbench_r and 400.perlbench with options -Ofast -march=native
-mtune=native -g -flto=32 results in
*** Miscompare of checkspam.2500.5.25.11.150.1.1.1.1.out
That means this is probably not only an aarch64 issue.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
` (6 preceding siblings ...)
2024-01-24 14:10 ` fkastl at suse dot cz
@ 2024-01-26 13:29 ` rguenth at gcc dot gnu.org
2024-01-26 14:09 ` fkastl at suse dot cz
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-26 13:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
Does this still happen after r14-8413-g578c7b91f418eb?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
` (7 preceding siblings ...)
2024-01-26 13:29 ` rguenth at gcc dot gnu.org
@ 2024-01-26 14:09 ` fkastl at suse dot cz
2024-02-05 20:56 ` jakub at gcc dot gnu.org
2024-02-05 21:12 ` tnfchris at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: fkastl at suse dot cz @ 2024-01-26 14:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
--- Comment #9 from Filip Kastl <fkastl at suse dot cz> ---
(In reply to Richard Biener from comment #8)
> Does this still happen after r14-8413-g578c7b91f418eb?
I think it doesn't happen anymore.
I can confirm that both on aarch64 and zen3, both the SPEC2006 and SPEC2017,
with -Ofast -march=native -mtune=native -flto perlbench compiles correctly now.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
` (8 preceding siblings ...)
2024-01-26 14:09 ` fkastl at suse dot cz
@ 2024-02-05 20:56 ` jakub at gcc dot gnu.org
2024-02-05 21:12 ` tnfchris at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-02-05 20:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
So can we close this then?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/113539] [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
` (9 preceding siblings ...)
2024-02-05 20:56 ` jakub at gcc dot gnu.org
@ 2024-02-05 21:12 ` tnfchris at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: tnfchris at gcc dot gnu.org @ 2024-02-05 21:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113539
Tamar Christina <tnfchris at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #11 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
oh forgot about this one, yes it's fixed now. Nightlies are clean.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-02-05 21:12 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-22 10:37 [Bug tree-optimization/113539] New: [14 Regression] perlbench miscompiled on aarch64 since r14-8223-g1c1853a70f acoplan at gcc dot gnu.org
2024-01-22 10:49 ` [Bug tree-optimization/113539] " tnfchris at gcc dot gnu.org
2024-01-22 10:54 ` rguenth at gcc dot gnu.org
2024-01-22 10:56 ` tnfchris at gcc dot gnu.org
2024-01-22 11:03 ` acoplan at gcc dot gnu.org
2024-01-24 5:04 ` liuhongt at gcc dot gnu.org
2024-01-24 14:08 ` fkastl at suse dot cz
2024-01-24 14:10 ` fkastl at suse dot cz
2024-01-26 13:29 ` rguenth at gcc dot gnu.org
2024-01-26 14:09 ` fkastl at suse dot cz
2024-02-05 20:56 ` jakub at gcc dot gnu.org
2024-02-05 21:12 ` tnfchris at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).