public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/97064] New: BB vectorization behaves sub-optimal
@ 2020-09-16  6:29 rguenth at gcc dot gnu.org
  2020-09-16  6:29 ` [Bug tree-optimization/97064] " rguenth at gcc dot gnu.org
  2022-01-11 12:15 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-16  6:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97064

            Bug ID: 97064
           Summary: BB vectorization behaves sub-optimal
           Product: gcc
           Version: 11.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: ---

The testcase g++.dg/vect/slp-pr87105.cc ends in

  _64 = MIN_EXPR <_32, _87>;
  bBox_6(D)->x0 = _64;
  _67 = MIN_EXPR <_33, _86>;
  bBox_6(D)->y0 = _67;
  _70 = MAX_EXPR <_36, _87>;
  bBox_6(D)->x1 = _70;
  _73 = MAX_EXPR <_39, _86>;
  bBox_6(D)->y1 = _73;

thus feeding a 4 element store with a non-uniform SLP opportunity
starting with { MIN, MIN, MAX, MAX }.  With 2-element vector type
vectorization this eventually gets vectorized by splitting the group
which is prioritized over just building the { MIN..., MAX } vector
from scalars but with 4-element vector type vectorization no splitting
is considered and we end up successfully vectorizing just the store
with never considering the smaller vector size.

So at the moment the testcase PASSes with SSE but fails with AVX.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug tree-optimization/97064] BB vectorization behaves sub-optimal
  2020-09-16  6:29 [Bug tree-optimization/97064] New: BB vectorization behaves sub-optimal rguenth at gcc dot gnu.org
@ 2020-09-16  6:29 ` rguenth at gcc dot gnu.org
  2022-01-11 12:15 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-16  6:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97064

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
   Last reconfirmed|                            |2020-09-16
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
             Blocks|                            |53947


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947
[Bug 53947] [meta-bug] vectorizer missed-optimizations

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug tree-optimization/97064] BB vectorization behaves sub-optimal
  2020-09-16  6:29 [Bug tree-optimization/97064] New: BB vectorization behaves sub-optimal rguenth at gcc dot gnu.org
  2020-09-16  6:29 ` [Bug tree-optimization/97064] " rguenth at gcc dot gnu.org
@ 2022-01-11 12:15 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-11 12:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97064

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-*-* i?86-*-*
                 CC|                            |crazylht at gmail dot com

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Also partly because we are not evaluating costing of multiple vector sizes on
x86.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-11 12:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16  6:29 [Bug tree-optimization/97064] New: BB vectorization behaves sub-optimal rguenth at gcc dot gnu.org
2020-09-16  6:29 ` [Bug tree-optimization/97064] " rguenth at gcc dot gnu.org
2022-01-11 12:15 ` 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).