public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/58135] New: [x86] Missed opportunities for partial SLP
@ 2013-08-12 11:59 ysrumyan at gmail dot com
  0 siblings, 0 replies; only message in thread
From: ysrumyan at gmail dot com @ 2013-08-12 11:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58135

            Bug ID: 58135
           Summary: [x86] Missed opportunities for partial SLP
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ysrumyan at gmail dot com

If we consider the following simple test-case 

int a[100];
void foo()
{
  a[0] = a[1] = a[2] = a[3] = 0;
}
SLP vectorization of basic block takes place:

gcc -S -O3 -m32  t.c -ftree-vectorizer-verbose=1      

t.c:4: note: Vectorized basic-block

but if we add at least one more assignment it won't be vectorized:

a[0] = a[1] = a[2] = a[3] = a[4] = 0;

t11.c:4: note: Build SLP failed: unrolling required in basic block SLP

It is clear that gcc can do partial BB vectorization, i.e. vectorize the first
4 assignments only.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-08-12 11:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-12 11:59 [Bug tree-optimization/58135] New: [x86] Missed opportunities for partial SLP ysrumyan at gmail 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).