public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43665]  New: Optimization of libgfortran calls: function annotations for noclobber/noescape arguments
@ 2010-04-06 13:30 burnus at gcc dot gnu dot org
  2010-04-06 13:51 ` [Bug fortran/43665] " burnus at gcc dot gnu dot org
                   ` (25 more replies)
  0 siblings, 26 replies; 30+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-04-06 13:30 UTC (permalink / raw)
  To: gcc-bugs

After the support goes into the middle end, cf.
http://gcc.gnu.org/ml/fortran/2010-04/msg00012.html and
http://gcc.gnu.org/ml/gcc-patches/2009-11/msg01257.html , one should use the
the new function call argument/return value attributes.

Note: One needs to be careful about this in terms of multi-image coarrays (SYNC
ALL, array single-side access) and true asynchronous I/O (WRITE ... WAIT) as
otherwise the middle end optimizes too much. (Telling this the middle end via a
specifically tailored attribute might be better, though.)

+ /* Call argument flags.  */
+ 
+ /* Nonzero if the argument is not dereferenced recursively, thus only
+    directly reachable memory is read or written.  */
+ #define EAF_DIRECT            (1 << 0)
+ /* Nonzero if memory reached by the argument is not clobbered.  */
+ #define EAF_NOCLOBBER         (1 << 1)
+ /* Nonzero if the argument does not escape.  */
+ #define EAF_NOESCAPE          (1 << 2)
+ /* Nonzero if the argument is not used by the function.  */
+ #define EAF_UNUSED            (1 << 3)
+
+ /* Call return flags.  */
+ 
+ /* Mask for the argument number that is returned.  Lower two bits of
+    the return flags, encodes argument slots zero to three.  */
+ #define ERF_RETURN_ARG_MASK   (3)
+ /* Nonzero if the return value is equal to the argument number
+    flags & ERF_RETURN_ARG_MASK.  */
+ #define ERF_RETURNS_ARG               (1 << 2)
+ /* Nonzero if the return value does not alias with anything.  Functions
+    with the malloc attribute have this set on their return value.  */
+ #define ERF_NOALIAS           (1 << 3)


-- 
           Summary: Optimization of libgfortran calls: function annotations
                    for noclobber/noescape arguments
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 30+ messages in thread
[parent not found: <bug-43665-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2013-06-25  9:02 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-06 13:30 [Bug fortran/43665] New: Optimization of libgfortran calls: function annotations for noclobber/noescape arguments burnus at gcc dot gnu dot org
2010-04-06 13:51 ` [Bug fortran/43665] " burnus at gcc dot gnu dot org
2010-05-10 10:11 ` burnus at gcc dot gnu dot org
2010-05-13 10:31 ` dfranke at gcc dot gnu dot org
2010-07-13 13:21 ` burnus at gcc dot gnu dot org
2010-07-13 17:26 ` burnus at gcc dot gnu dot org
2010-07-13 17:32 ` [Bug fortran/43665] INTENT(IN) etc. optimization of " burnus at gcc dot gnu dot org
2010-07-20 15:06 ` burnus at gcc dot gnu dot org
2010-07-20 15:26 ` burnus at gcc dot gnu dot org
2010-07-20 15:58 ` burnus at gcc dot gnu dot org
2010-07-20 16:01 ` rguenth at gcc dot gnu dot org
2010-07-20 16:12 ` burnus at gcc dot gnu dot org
2010-07-21  8:09 ` rguenther at suse dot de
2010-07-21  8:27 ` jamborm at gcc dot gnu dot org
2010-07-22 15:36 ` burnus at gcc dot gnu dot org
2010-09-06 14:14 ` jamborm at gcc dot gnu dot org
2010-09-06 18:26 ` jamborm at gcc dot gnu dot org
2010-09-06 18:44 ` burnus at gcc dot gnu dot org
2010-09-07 17:01 ` jamborm at gcc dot gnu dot org
2010-09-08  6:25 ` burnus at gcc dot gnu dot org
2010-09-09  8:43 ` burnus at gcc dot gnu dot org
2010-09-10 12:09 ` burnus at gcc dot gnu dot org
2010-09-10 12:12 ` burnus at gcc dot gnu dot org
2010-09-11 15:13 ` dominiq at lps dot ens dot fr
2010-09-12  9:32 ` burnus at gcc dot gnu dot org
2010-09-12 10:14 ` dominiq at lps dot ens dot fr
2010-09-16 21:30 ` burnus at gcc dot gnu dot org
     [not found] <bug-43665-4@http.gcc.gnu.org/bugzilla/>
2010-10-16 16:06 ` tkoenig at gcc dot gnu.org
2012-06-29 17:32 ` mikael at gcc dot gnu.org
2013-06-25  9:02 ` dominiq at lps dot ens.fr

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).