public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/111879] New: No gather BB vectorization for
@ 2023-10-19 12:40 rguenth at gcc dot gnu.org
2023-10-19 12:51 ` [Bug tree-optimization/111879] " rguenth at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-10-19 12:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111879
Bug ID: 111879
Summary: No gather BB vectorization for
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
void __attribute__((noipa))
f (int *restrict y, int *restrict x, int *restrict indices)
{
int i = 0;
y[i * 2] = x[indices[i * 2]] + 1;
y[i * 2 + 1] = x[indices[i * 2 + 1]] + 2;
i++;
y[i * 2] = x[indices[i * 2]] + 1;
y[i * 2 + 1] = x[indices[i * 2 + 1]] + 2;
i++;
y[i * 2] = x[indices[i * 2]] + 1;
y[i * 2 + 1] = x[indices[i * 2 + 1]] + 2;
i++;
y[i * 2] = x[indices[i * 2]] + 1;
y[i * 2 + 1] = x[indices[i * 2 + 1]] + 2;
}
doesn't see the gather operation vectorized (extracted from the loop in
gcc.dg/vect/vect-gather-1.c). Instead we only see the adds and the stores
vectorized.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug tree-optimization/111879] No gather BB vectorization for
2023-10-19 12:40 [Bug tree-optimization/111879] New: No gather BB vectorization for rguenth at gcc dot gnu.org
@ 2023-10-19 12:51 ` rguenth at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-10-19 12:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111879
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Last reconfirmed| |2023-10-19
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The way we identify gathers/scatters in vect_analyze_data_refs doesn't work.
We probably have to delay gather/scatter "discovery" until after we do
group analysis or within that.
So it's not going to be simple.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-19 12:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-19 12:40 [Bug tree-optimization/111879] New: No gather BB vectorization for rguenth at gcc dot gnu.org
2023-10-19 12:51 ` [Bug tree-optimization/111879] " rguenth 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).