public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/64950] New: postpone expanding va_arg till pass_stdarg
@ 2015-02-05 17:05 vries at gcc dot gnu.org
  2015-02-22 15:27 ` [Bug tree-optimization/64950] " vries at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: vries at gcc dot gnu.org @ 2015-02-05 17:05 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64950
           Summary: postpone expanding va_arg till pass_stdarg
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org

pass_stdarg optimizes cfun->va_list_gpr/fpr_size by detecting va_args.

However, va_args are expanded at gimple level, so pass_stdarg detects them by
matching what the expansion of va_arg looks like after running through the
passes between gimplification and pass_stdarg.

This is known to be fragile (see f.i. PR 41089). It makes more sense to do the
pass_stdarg optimization while va_arg is still intact. And we want to run
optimization passes before pass_stdarg to be able to eliminate some unwanted
va_args. So, it makes sense to postpone expansion of va_arg untill pass_stdarg.

Michael Matz posted a prototype patch (
https://gcc.gnu.org/ml/gcc/2015-01/msg00304.html ). Latest version availabe at
vries/expand-va-arg-at-pass-stdarg. Testing status of latest version available
at https://gcc.gnu.org/ml/gcc/2015-02/msg00020.html .


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

end of thread, other threads:[~2015-05-05 10:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-05 17:05 [Bug tree-optimization/64950] New: postpone expanding va_arg till pass_stdarg vries at gcc dot gnu.org
2015-02-22 15:27 ` [Bug tree-optimization/64950] " vries at gcc dot gnu.org
2015-02-24 12:50 ` vries at gcc dot gnu.org
2015-03-10 19:10 ` vries at gcc dot gnu.org
2015-04-16  8:51 ` vries at gcc dot gnu.org
2015-04-17  9:50 ` vries at gcc dot gnu.org
2015-04-17  9:51 ` vries at gcc dot gnu.org
2015-04-17  9:59 ` vries at gcc dot gnu.org
2015-04-17 12:53 ` ubizjak at gmail dot com
2015-04-17 14:09 ` vries at gcc dot gnu.org
2015-04-21  6:30 ` uros at gcc dot gnu.org
2015-05-04 13:10 ` ro at gcc dot gnu.org
2015-05-05  9:17 ` vries at gcc dot gnu.org
2015-05-05 10:38 ` vries at gcc dot gnu.org
2015-05-05 10:40 ` vries 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).