This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

Re: [Bug libc/18402] FPU use in application before main()


On Tue, May 12, 2015 at 04:46:31PM +0000, hjl.tools at gmail dot com wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=18402
> 
> --- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
> (In reply to Dave Hansen from comment #9)
> > 
> > There's also the matter that the kernel tries to be lazy about allocating
> > and saving/restoring FPU state.  If the task is virtually guaranteed to have
> > FPU state, then we should reconsider the lazy mode being the default.
> 
> Since most, if not all, applications will call string/memory functions,
> which are optimized with SSE, kernel needs to prepare for that.
> 
Yes, lazy FPU is relict from 486 days. Now it only decreases performance
as every application uses sse. Also gcc vectorizer will likely introduce sse
instruction to improve performance of vectorizable loop.

I would mark this as invalid as I don't see why its problem.


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