Re: [TESTING]: boot2 changes

From: Roman Divacky <rdivacky_at_freebsd.org>
Date: Tue, 1 Mar 2011 18:17:12 +0100
On Tue, Mar 01, 2011 at 07:54:14AM -0500, John Baldwin wrote:
> On Monday, February 28, 2011 3:39:28 pm Roman Divacky wrote:
> > 3) it changes the first keyhit limit to 5 seconds from 3
> >    so that constant propagation can take place
> 
> Does this make booting take 2 seconds longer as a result?
> 
> I'm curious as to why '3*FOO' isn't a constant but '5*FOO' is?

I worded it wrong, the point being that if the argument is the same
in all callsites the compiler can turn it into a constant and propagate
that to the function.

I will remove this as it saves just 8 bytes... thank you for the review!

roman
Received on Tue Mar 01 2011 - 16:17:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:12 UTC