public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/50680] New: -ftree-vectorizer-verbose does not report about  "basic block SLP" (attempt of) vectorization
@ 2011-10-09 16:16 vincenzo.innocente at cern dot ch
  2011-10-10  9:41 ` [Bug tree-optimization/50680] " rguenth at gcc dot gnu.org
  2020-09-14 12:31 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2011-10-09 16:16 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50680
           Summary: -ftree-vectorizer-verbose does not report about
                    "basic block SLP" (attempt of) vectorization
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vincenzo.innocente@cern.ch


in this example compiled with
c++ -Ofast -ftree-vectorizer-verbose=7  -c slp.cc  -mtune=corei7  -msse4.2
it reports only about loop, voop,aoop, not about the equivalently
(not)-vectorized code in foo,voo,aoo
This makes debug/optmization of "basic block SLP" difficult
(it took me a while to understand why foo is not vectorized!)

float * __restrict__ x;
float * __restrict__ y;
float * __restrict__ z;

float v1[4],v2[4],v3[4];

struct A {
  float a[4];
}; //  __attribute__ ((aligned(16)));

A a1, a2, a3;

void foo ()
{

 float * __restrict__ pin = &x[0];
 float * __restrict__ pout =&y[0];

  *pout++ = *pin++;
  *pout++ = *pin++;
  *pout++ = *pin++;
  *pout++ = *pin++;
}

void voo() {

 float * __restrict__ pin = &v1[0];
 float * __restrict__ pout =&v2[0];

  *pout++ = *pin++;
  *pout++ = *pin++;
  *pout++ = *pin++;
  *pout++ = *pin++;


}

void aoo() {

 float * __restrict__ pin = &a1.a[0];
 float * __restrict__ pout =&a2.a[0];

  *pout++ = *pin++;
  *pout++ = *pin++;
  *pout++ = *pin++;
  *pout++ = *pin++;


}


void loop() {
  for (int i=0;i!=4;++i) x[i]=y[i]+z[i];
}

void voop() {
  for (int i=0;i!=4;++i) v1[i]=v2[i]+v3[i];
}

void aoop() {
  for (int i=0;i!=4;++i) a1.a[i]=a2.a[i]+a3.a[i];
}


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

* [Bug tree-optimization/50680] -ftree-vectorizer-verbose does not report about  "basic block SLP" (attempt of) vectorization
  2011-10-09 16:16 [Bug tree-optimization/50680] New: -ftree-vectorizer-verbose does not report about "basic block SLP" (attempt of) vectorization vincenzo.innocente at cern dot ch
@ 2011-10-10  9:41 ` rguenth at gcc dot gnu.org
  2020-09-14 12:31 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-10  9:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
           Severity|trivial                     |enhancement


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

* [Bug tree-optimization/50680] -ftree-vectorizer-verbose does not report about  "basic block SLP" (attempt of) vectorization
  2011-10-09 16:16 [Bug tree-optimization/50680] New: -ftree-vectorizer-verbose does not report about "basic block SLP" (attempt of) vectorization vincenzo.innocente at cern dot ch
  2011-10-10  9:41 ` [Bug tree-optimization/50680] " rguenth at gcc dot gnu.org
@ 2020-09-14 12:31 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-09-14 12:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-09-14
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Still the case because most of the analysis is under a dump-scope:

vect_slp_analyze_bb_1 (bb_vec_info bb_vinfo, int n_stmts, bool &fatal,
                       vec<int> *dataref_groups)
{
  DUMP_VECT_SCOPE ("vect_slp_analyze_bb");

and BB analysis does not return a opt_result yet to communicate the relevant
part up.

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

end of thread, other threads:[~2020-09-14 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-09 16:16 [Bug tree-optimization/50680] New: -ftree-vectorizer-verbose does not report about "basic block SLP" (attempt of) vectorization vincenzo.innocente at cern dot ch
2011-10-10  9:41 ` [Bug tree-optimization/50680] " rguenth at gcc dot gnu.org
2020-09-14 12:31 ` 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).