public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/115675] New: truncv4hiv4qi affect r14-1402-gd8545fb2c71683's optimization.
@ 2024-06-27 8:27 lin1.hu at intel dot com
2024-06-27 12:27 ` [Bug middle-end/115675] [15 Regression] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: lin1.hu at intel dot com @ 2024-06-27 8:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115675
Bug ID: 115675
Summary: truncv4hiv4qi affect r14-1402-gd8545fb2c71683's
optimization.
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: lin1.hu at intel dot com
Target Milestone: ---
After r15-1678-ge5f8a39941f6f0, truncv4hiv4qi affects dump and interferes with
r14-1402-gd8545fb2c71683's optimization.
When I compile pr108938-3.c with -mavx or -mavx512bw -mavx512vl, GCC doesn't
generate bswap r32. I've discussed this with Hongtao and haven't found an
easier way to do it yet. I think it might be possible to target match the
current form to re-support bswap optimization with option -mavx.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/115675] [15 Regression] truncv4hiv4qi affect r14-1402-gd8545fb2c71683's optimization.
2024-06-27 8:27 [Bug middle-end/115675] New: truncv4hiv4qi affect r14-1402-gd8545fb2c71683's optimization lin1.hu at intel dot com
@ 2024-06-27 12:27 ` rguenth at gcc dot gnu.org
2024-06-27 13:19 ` liuhongt at gcc dot gnu.org
2024-06-28 1:42 ` lin1.hu at intel dot com
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-06-27 12:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115675
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Version|unknown |15.0
Target Milestone|--- |15.0
Target| |x86_64-*-*
Summary|truncv4hiv4qi affect |[15 Regression]
|r14-1402-gd8545fb2c71683's |truncv4hiv4qi affect
|optimization. |r14-1402-gd8545fb2c71683's
| |optimization.
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
so it's now SLP vectorized?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/115675] [15 Regression] truncv4hiv4qi affect r14-1402-gd8545fb2c71683's optimization.
2024-06-27 8:27 [Bug middle-end/115675] New: truncv4hiv4qi affect r14-1402-gd8545fb2c71683's optimization lin1.hu at intel dot com
2024-06-27 12:27 ` [Bug middle-end/115675] [15 Regression] " rguenth at gcc dot gnu.org
@ 2024-06-27 13:19 ` liuhongt at gcc dot gnu.org
2024-06-28 1:42 ` lin1.hu at intel dot com
2 siblings, 0 replies; 4+ messages in thread
From: liuhongt at gcc dot gnu.org @ 2024-06-27 13:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115675
Hongtao Liu <liuhongt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |liuhongt at gcc dot gnu.org
--- Comment #2 from Hongtao Liu <liuhongt at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> so it's now SLP vectorized?
Yes, the vectorization looks not reasonable. it used to be vectorized as v4qi
vector CTOR + v4qi vector store. Now it's vectorized as v4hi vector CTOR +
truncv4hiv4qi + v4qi vector store.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug middle-end/115675] [15 Regression] truncv4hiv4qi affect r14-1402-gd8545fb2c71683's optimization.
2024-06-27 8:27 [Bug middle-end/115675] New: truncv4hiv4qi affect r14-1402-gd8545fb2c71683's optimization lin1.hu at intel dot com
2024-06-27 12:27 ` [Bug middle-end/115675] [15 Regression] " rguenth at gcc dot gnu.org
2024-06-27 13:19 ` liuhongt at gcc dot gnu.org
@ 2024-06-28 1:42 ` lin1.hu at intel dot com
2 siblings, 0 replies; 4+ messages in thread
From: lin1.hu at intel dot com @ 2024-06-28 1:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115675
--- Comment #3 from Hu Lin <lin1.hu at intel dot com> ---
192t.slp2
Previous:
781 char * vectp.10;
782 vector(4) char * vectp_a.9;
783 short int _1;
784 short int _2;
785 char _3;
786 char _4;
787 short int _5;
788 short int _6;
789 char _7;
790 char _8;
791 vector(4) char _16;
792
793 <bb 2> [local count: 1073741824]:
794 _1 = *b_10(D);
795 _2 = _1 >> 8;
796 _3 = (char) _2;
797 _4 = (char) _1;
798 _5 = MEM[(short int *)b_10(D) + 2B];
799 _6 = _5 >> 8;
800 _7 = (char) _6;
801 _8 = (char) _5;
802 _16 = {_3, _4, _7, _8};
803 vectp.10_17 = a_11(D);
804 MEM <vector(4) char> [(char *)vectp.10_17] = _16;
Current:
792 char * vectp.11;
793 vector(4) char * vectp_a.10;
794 vector(4) char vect__3.9;
795 short int _1;
796 short int _2;
797 char _3;
798 char _4;
799 short int _5;
800 short int _6;
801 char _7;
802 char _8;
803 vector(4) short int _16;
804
805 <bb 2> [local count: 1073741824]:
806 _1 = *b_10(D);
807 _2 = _1 >> 8;
808 _3 = (char) _2;
809 _4 = (char) _1;
810 _5 = MEM[(short int *)b_10(D) + 2B];
811 _6 = _5 >> 8;
812 _16 = {_2, _1, _6, _5};
813 vect__3.9_17 = (vector(4) char) _16;
814 _7 = (char) _6;
815 _8 = (char) _5;
816 vectp.11_18 = a_11(D);
817 MEM <vector(4) char> [(char *)vectp.11_18] = vect__3.9_17;
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-28 1:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-27 8:27 [Bug middle-end/115675] New: truncv4hiv4qi affect r14-1402-gd8545fb2c71683's optimization lin1.hu at intel dot com
2024-06-27 12:27 ` [Bug middle-end/115675] [15 Regression] " rguenth at gcc dot gnu.org
2024-06-27 13:19 ` liuhongt at gcc dot gnu.org
2024-06-28 1:42 ` lin1.hu at intel dot com
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).