public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
@ 2023-12-12 1:07 pinskia at gcc dot gnu.org
2023-12-12 1:08 ` [Bug middle-end/112976] " pinskia at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-12 1:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112976
Bug ID: 112976
Summary: expand_gimple_stmt_1 vs
gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: internal-improvement
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
As far as I can tell if TREE_CODE (lhs) == SSA_NAME then
gimple_assign_nontemporal_move_p should always be false as it is never a store.
So all of the code for nontemporal in the else case of `TREE_CODE (lhs) !=
SSA_NAME` if in cfgexpand.cc is dead.
This has been there since r0-95521-g28ed065ef9f345 which added expand from
tuples directly.
We most likely should also have gimple_assign_set_nontemporal_move assert that
the gimple assign's lhs is not a SSA_NAME.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/112976] expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
2023-12-12 1:07 [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs pinskia at gcc dot gnu.org
@ 2023-12-12 1:08 ` pinskia at gcc dot gnu.org
2024-04-17 21:03 ` pinskia at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-12 1:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112976
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org
Last reconfirmed| |2023-12-12
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Mine for cleanup for GCC 15.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/112976] expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
2023-12-12 1:07 [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs pinskia at gcc dot gnu.org
2023-12-12 1:08 ` [Bug middle-end/112976] " pinskia at gcc dot gnu.org
@ 2024-04-17 21:03 ` pinskia at gcc dot gnu.org
2024-04-17 21:20 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-17 21:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112976
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note gimple_assign_nontemporal_move_p is just for non temporal stores. There is
no code handling non-temporal loads (which do exist on some targets, aarch64
for an example).
I will also add a comment to that effect above gimple_assign_nontemporal_move_p
too.
Plus I will also add to the verifier that gimple_assign_nontemporal_move_p is
only set for the case where LHS != SSA_NAME ....
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/112976] expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
2023-12-12 1:07 [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs pinskia at gcc dot gnu.org
2023-12-12 1:08 ` [Bug middle-end/112976] " pinskia at gcc dot gnu.org
2024-04-17 21:03 ` pinskia at gcc dot gnu.org
@ 2024-04-17 21:20 ` pinskia at gcc dot gnu.org
2024-04-18 5:35 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-17 21:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112976
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=101852
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note storent optab name is not documented.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/112976] expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
2023-12-12 1:07 [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs pinskia at gcc dot gnu.org
` (2 preceding siblings ...)
2024-04-17 21:20 ` pinskia at gcc dot gnu.org
@ 2024-04-18 5:35 ` pinskia at gcc dot gnu.org
2024-04-18 5:35 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-18 5:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112976
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 57978
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57978&action=edit
Patch 1/2
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/112976] expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
2023-12-12 1:07 [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs pinskia at gcc dot gnu.org
` (3 preceding siblings ...)
2024-04-18 5:35 ` pinskia at gcc dot gnu.org
@ 2024-04-18 5:35 ` pinskia at gcc dot gnu.org
2024-04-18 5:36 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-18 5:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112976
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 57979
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57979&action=edit
Patch 2/2
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/112976] expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
2023-12-12 1:07 [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs pinskia at gcc dot gnu.org
` (4 preceding siblings ...)
2024-04-18 5:35 ` pinskia at gcc dot gnu.org
@ 2024-04-18 5:36 ` pinskia at gcc dot gnu.org
2024-04-26 23:05 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-18 5:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112976
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Will submit both patches once GCC 15 opens up.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/112976] expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
2023-12-12 1:07 [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs pinskia at gcc dot gnu.org
` (5 preceding siblings ...)
2024-04-18 5:36 ` pinskia at gcc dot gnu.org
@ 2024-04-26 23:05 ` pinskia at gcc dot gnu.org
2024-04-30 15:56 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-26 23:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112976
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Patches posted:
https://gcc.gnu.org/pipermail/gcc-patches/2024-April/650085.html
https://gcc.gnu.org/pipermail/gcc-patches/2024-April/650084.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/112976] expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
2023-12-12 1:07 [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs pinskia at gcc dot gnu.org
` (6 preceding siblings ...)
2024-04-26 23:05 ` pinskia at gcc dot gnu.org
@ 2024-04-30 15:56 ` cvs-commit at gcc dot gnu.org
2024-04-30 15:56 ` cvs-commit at gcc dot gnu.org
2024-04-30 15:57 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-30 15:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112976
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:
https://gcc.gnu.org/g:e3a7f359c18bf347f6ac8fcda05e9839fac5bd62
commit r15-72-ge3a7f359c18bf347f6ac8fcda05e9839fac5bd62
Author: Andrew Pinski <quic_apinski@quicinc.com>
Date: Wed Apr 17 14:12:17 2024 -0700
Add verification of gimple_assign_nontemporal_move_p [PR112976]
Currently the middle-end only knows how to support temporal stores
(the undocumented storent optab) so let's verify that the only time
we set nontemporal_move on an assign is if the the lhs is not a
gimple reg.
Bootstrapped and tested on x86_64-linux-gnu no regressions.
gcc/ChangeLog:
PR middle-end/112976
* tree-cfg.cc (verify_gimple_assign): Verify that
nontmporal moves are stores.
* gimple.h (struct gimple): Note that only
nontemporal stores are supported.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/112976] expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
2023-12-12 1:07 [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs pinskia at gcc dot gnu.org
` (7 preceding siblings ...)
2024-04-30 15:56 ` cvs-commit at gcc dot gnu.org
@ 2024-04-30 15:56 ` cvs-commit at gcc dot gnu.org
2024-04-30 15:57 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-04-30 15:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112976
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:
https://gcc.gnu.org/g:8614d60233a64afd7e28ae7af2ab74c4a5b06010
commit r15-73-g8614d60233a64afd7e28ae7af2ab74c4a5b06010
Author: Andrew Pinski <quic_apinski@quicinc.com>
Date: Wed Apr 17 14:30:06 2024 -0700
Remove support for nontemporal stores with ssa_names on lhs [PR112976]
When cfgexpand was changed to support expanding from tuple gimple
(r0-95521-g28ed065ef9f345), the code was added to support
doing nontemporal stores with LHS of a SSA_NAME but that will
never be a nontemporal store.
This patch removes that and asserts that expanding with a LHS
of a SSA_NAME is not a nontemporal store.
Bootstrapped and tested on x86_64-linux-gnu.
gcc/ChangeLog:
PR middle-end/112976
* cfgexpand.cc (expand_gimple_stmt_1): Remove
support for expanding nontemporal "moves" with
ssa names on the LHS.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug middle-end/112976] expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs
2023-12-12 1:07 [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs pinskia at gcc dot gnu.org
` (8 preceding siblings ...)
2024-04-30 15:56 ` cvs-commit at gcc dot gnu.org
@ 2024-04-30 15:57 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-30 15:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112976
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Target Milestone|--- |15.0
Resolution|--- |FIXED
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-04-30 15:57 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-12 1:07 [Bug middle-end/112976] New: expand_gimple_stmt_1 vs gimple_assign_nontemporal_move_p vs SSA_NAME on lhs pinskia at gcc dot gnu.org
2023-12-12 1:08 ` [Bug middle-end/112976] " pinskia at gcc dot gnu.org
2024-04-17 21:03 ` pinskia at gcc dot gnu.org
2024-04-17 21:20 ` pinskia at gcc dot gnu.org
2024-04-18 5:35 ` pinskia at gcc dot gnu.org
2024-04-18 5:35 ` pinskia at gcc dot gnu.org
2024-04-18 5:36 ` pinskia at gcc dot gnu.org
2024-04-26 23:05 ` pinskia at gcc dot gnu.org
2024-04-30 15:56 ` cvs-commit at gcc dot gnu.org
2024-04-30 15:56 ` cvs-commit at gcc dot gnu.org
2024-04-30 15:57 ` pinskia 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).