public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/58526] New: Inlining looses restrict qualifier and leads to loop versioned vectorization
@ 2013-09-25  8:20 burnus at gcc dot gnu.org
  2013-09-25  9:57 ` [Bug tree-optimization/58526] " rguenth at gcc dot gnu.org
  2014-09-03 14:07 ` burnus at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-09-25  8:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58526
           Summary: Inlining looses restrict qualifier and leads to loop
                    versioned vectorization
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org

Created attachment 30892
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30892&action=edit
C++ test case

The attached test case vectorizes without loop versioning when compiled with
-fno-inline.

Expected: Also with inlining, the restrict qualifier survives and is used in
alias analysis - such that no loop versioning is done. (That's also what one
gets with Intel's icpc 13.1.1.)

g++ -march=native -funroll-loops -fno-rtti -fno-exceptions -Ofast -std=c++11 -S
-fopt-info-optall-optimized  test3.cc

test3.cc:16:3: note: loop vectorized
test3.cc:16:3: note: loop versioned for vectorization because of possible
aliasing
test3.cc:16:3: note: loop with 3 iterations completely unrolled
test3.cc:16:3: note: loop unrolled 7 times
test3.cc:17:34: note: loop unrolled 7 times


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

* [Bug tree-optimization/58526] Inlining looses restrict qualifier and leads to loop versioned vectorization
  2013-09-25  8:20 [Bug tree-optimization/58526] New: Inlining looses restrict qualifier and leads to loop versioned vectorization burnus at gcc dot gnu.org
@ 2013-09-25  9:57 ` rguenth at gcc dot gnu.org
  2014-09-03 14:07 ` burnus at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-25  9:57 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-09-25
                 CC|                            |matz at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  Should be fixable with the restrict tag idea.  Which someone needs
to pick up.


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

* [Bug tree-optimization/58526] Inlining looses restrict qualifier and leads to loop versioned vectorization
  2013-09-25  8:20 [Bug tree-optimization/58526] New: Inlining looses restrict qualifier and leads to loop versioned vectorization burnus at gcc dot gnu.org
  2013-09-25  9:57 ` [Bug tree-optimization/58526] " rguenth at gcc dot gnu.org
@ 2014-09-03 14:07 ` burnus at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu.org @ 2014-09-03 14:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
See also RFC patch at https://gcc.gnu.org/ml/gcc-patches/2014-09/msg00232.html


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

end of thread, other threads:[~2014-09-03 14:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-25  8:20 [Bug tree-optimization/58526] New: Inlining looses restrict qualifier and leads to loop versioned vectorization burnus at gcc dot gnu.org
2013-09-25  9:57 ` [Bug tree-optimization/58526] " rguenth at gcc dot gnu.org
2014-09-03 14:07 ` burnus 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).