public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/93930] [8/9/10 Regression] Unnecessary broadcast instructions for AVX512
[not found] <bug-93930-4@http.gcc.gnu.org/bugzilla/>
@ 2020-03-09 15:19 ` jakub at gcc dot gnu.org
2021-05-14 9:53 ` [Bug target/93930] [9/10/11/12 " jakub at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-03-09 15:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93930
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The cost changes affect the RTL LIM.-Set in insn 22 is invariant (0), cost 32,
depends on
-Set in insn 27 is invariant (1), cost 32, depends on
-Set in insn 32 is invariant (2), cost 32, depends on
-Set in insn 37 is invariant (3), cost 32, depends on
-Set in insn 61 is invariant (4), cost 32, depends on
-Set in insn 66 is invariant (5), cost 32, depends on
-Set in insn 71 is invariant (6), cost 32, depends on
-Set in insn 76 is invariant (7), cost 32, depends on
-Set in insn 101 is invariant (8), cost 32, depends on
-Set in insn 106 is invariant (9), cost 32, depends on
-Set in insn 111 is invariant (10), cost 32, depends on
-Set in insn 116 is invariant (11), cost 32, depends on
-Decided to move invariant 0 -- gain 32
-Decided to move invariant 1 -- gain 32
-Decided to move invariant 2 -- gain 32
-Decided to move invariant 3 -- gain 32
-Decided to move invariant 4 -- gain 32
-Decided to move invariant 5 -- gain 32
-Decided to move invariant 6 -- gain 32
-Decided to move invariant 7 -- gain 32
-Decided to move invariant 8 -- gain 32
-Decided to move invariant 9 -- gain 32
-Decided to move invariant 10 -- gain 10
-Decided to move invariant 11 -- gain 30
+Set in insn 22 is invariant (0), cost 4, depends on
+Set in insn 27 is invariant (1), cost 4, depends on
+Set in insn 32 is invariant (2), cost 4, depends on
+Set in insn 37 is invariant (3), cost 4, depends on
+Set in insn 61 is invariant (4), cost 4, depends on
+Set in insn 66 is invariant (5), cost 4, depends on
+Set in insn 71 is invariant (6), cost 4, depends on
+Set in insn 76 is invariant (7), cost 4, depends on
+Set in insn 101 is invariant (8), cost 4, depends on
+Set in insn 106 is invariant (9), cost 4, depends on
+Set in insn 111 is invariant (10), cost 4, depends on
+Set in insn 116 is invariant (11), cost 4, depends on
+Decided to move invariant 0 -- gain 4
+Decided to move invariant 1 -- gain 4
+Decided to move invariant 2 -- gain 4
+Decided to move invariant 3 -- gain 4
+Decided to move invariant 4 -- gain 4
+Decided to move invariant 5 -- gain 4
+Decided to move invariant 6 -- gain 4
+Decided to move invariant 7 -- gain 4
+Decided to move invariant 8 -- gain 4
+Decided to move invariant 9 -- gain 4
which means invariant 10 and 11 aren't moved anymore.
Those two are:
-(insn 111 106 116 3 (set (reg:V16SF 210)
- (vec_duplicate:V16SF (vec_select:SF (reg:V4SF 234)
- (parallel [
- (const_int 0 [0])
- ])))) "include/avx512fintrin.h":207 4206
{avx512f_vec_dupv16sf}
- (expr_list:REG_EQUAL (const_vector:V16SF [
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- (const_double:SF 2.3e+1 [0x0.b8p+5])
- ])
- (nil)))
-(insn 116 111 139 3 (set (reg:V16SF 214)
- (vec_duplicate:V16SF (vec_select:SF (reg:V4SF 235)
- (parallel [
- (const_int 0 [0])
- ])))) "include/avx512fintrin.h":207 4206
{avx512f_vec_dupv16sf}
- (expr_list:REG_EQUAL (const_vector:V16SF [
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- (const_double:SF 2.4e+1 [0x0.cp+5])
- ])
- (nil)))
and I bet the reason they are using the const costs are the REG_EQUAL notes.
The setters of their sources are:
(insn 169 168 170 3 (set (reg:V4SF 234)
(mem/u/c:V4SF (symbol_ref/u:DI ("*.LC10") [flags 0x2]) [2 S16 A128]))
-1
(expr_list:REG_EQUAL (const_vector:V4SF [
(const_double:SF 2.3e+1 [0x0.b8p+5])
(const_double:SF 0.0 [0x0.0p+0])
(const_double:SF 0.0 [0x0.0p+0])
(const_double:SF 0.0 [0x0.0p+0])
])
(nil)))
(insn 170 169 22 3 (set (reg:V4SF 235)
(mem/u/c:V4SF (symbol_ref/u:DI ("*.LC11") [flags 0x2]) [2 S16 A128]))
-1
(expr_list:REG_EQUAL (const_vector:V4SF [
(const_double:SF 2.4e+1 [0x0.cp+5])
(const_double:SF 0.0 [0x0.0p+0])
(const_double:SF 0.0 [0x0.0p+0])
(const_double:SF 0.0 [0x0.0p+0])
])
(nil)))
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/93930] [9/10/11/12 Regression] Unnecessary broadcast instructions for AVX512
[not found] <bug-93930-4@http.gcc.gnu.org/bugzilla/>
2020-03-09 15:19 ` [Bug target/93930] [8/9/10 Regression] Unnecessary broadcast instructions for AVX512 jakub at gcc dot gnu.org
@ 2021-05-14 9:53 ` jakub at gcc dot gnu.org
2021-06-01 8:16 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14 9:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93930
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|8.5 |9.4
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/93930] [9/10/11/12 Regression] Unnecessary broadcast instructions for AVX512
[not found] <bug-93930-4@http.gcc.gnu.org/bugzilla/>
2020-03-09 15:19 ` [Bug target/93930] [8/9/10 Regression] Unnecessary broadcast instructions for AVX512 jakub at gcc dot gnu.org
2021-05-14 9:53 ` [Bug target/93930] [9/10/11/12 " jakub at gcc dot gnu.org
@ 2021-06-01 8:16 ` rguenth at gcc dot gnu.org
2022-05-27 9:42 ` [Bug target/93930] [10/11/12/13 " rguenth at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01 8:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93930
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.4 |9.5
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/93930] [10/11/12/13 Regression] Unnecessary broadcast instructions for AVX512
[not found] <bug-93930-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-06-01 8:16 ` rguenth at gcc dot gnu.org
@ 2022-05-27 9:42 ` rguenth at gcc dot gnu.org
2022-06-28 10:39 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93930
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.5 |10.4
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/93930] [10/11/12/13 Regression] Unnecessary broadcast instructions for AVX512
[not found] <bug-93930-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2022-05-27 9:42 ` [Bug target/93930] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-07-07 10:37 ` [Bug target/93930] [11/12/13/14 " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93930
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/93930] [11/12/13/14 Regression] Unnecessary broadcast instructions for AVX512
[not found] <bug-93930-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2022-06-28 10:39 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:37 ` rguenth at gcc dot gnu.org
2024-02-21 4:04 ` pinskia at gcc dot gnu.org
2024-03-10 21:43 ` law at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93930
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.5 |11.5
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/93930] [11/12/13/14 Regression] Unnecessary broadcast instructions for AVX512
[not found] <bug-93930-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2023-07-07 10:37 ` [Bug target/93930] [11/12/13/14 " rguenth at gcc dot gnu.org
@ 2024-02-21 4:04 ` pinskia at gcc dot gnu.org
2024-03-10 21:43 ` law at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-02-21 4:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93930
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks to be fixed in GCC 11+.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/93930] [11/12/13/14 Regression] Unnecessary broadcast instructions for AVX512
[not found] <bug-93930-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2024-02-21 4:04 ` pinskia at gcc dot gnu.org
@ 2024-03-10 21:43 ` law at gcc dot gnu.org
7 siblings, 0 replies; 8+ messages in thread
From: law at gcc dot gnu.org @ 2024-03-10 21:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93930
Jeffrey A. Law <law at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at gcc dot gnu.org
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #10 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Per c#9.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-03-10 21:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-93930-4@http.gcc.gnu.org/bugzilla/>
2020-03-09 15:19 ` [Bug target/93930] [8/9/10 Regression] Unnecessary broadcast instructions for AVX512 jakub at gcc dot gnu.org
2021-05-14 9:53 ` [Bug target/93930] [9/10/11/12 " jakub at gcc dot gnu.org
2021-06-01 8:16 ` rguenth at gcc dot gnu.org
2022-05-27 9:42 ` [Bug target/93930] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-07-07 10:37 ` [Bug target/93930] [11/12/13/14 " rguenth at gcc dot gnu.org
2024-02-21 4:04 ` pinskia at gcc dot gnu.org
2024-03-10 21:43 ` law 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).