This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/21982] GCC should combine adjacent stdio calls


------- Additional Comments From dnovillo at redhat dot com  2005-06-10 14:35 -------
Subject: Re:  GCC should combine adjacent stdio calls

On Fri, Jun 10, 2005 at 02:28:36PM -0000, joseph at codesourcery dot com wrote:

> Since putc and puts are typically faster than printf (not needing to parse 
> the input) and we optimize printf of constants into them, it's not clear 
> that merging printf with such functions would be an improvement either.
> 
No, the patch does not merge different builtins.  The whole idea
is to collapse multiple I/O calls of the same kind into one.

Whether this helps or not, I don't know.  It certainly is a
straightforward transformation.


Diego.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]