RegAllocGreedy behaves host-dependent (-mfpmath on i686)

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Feb 3 07:33:24 PST 2014


> On 03 Feb 2014, at 04:44, NAKAMURA Takumi <geek4civic at gmail.com> wrote:
> 
> Jakob,
> 
> On i686 host, I saw different output between llc compiled by
> gcc-4.7 (-mfpmath=387 by default) and
> llc compiled by clang (-mfpmath=sse, I guess).
> It seems "clang -mno-sse" can suppress this issue.
> 
> Although I am still investigating, I could suggest (float)Hysteresis
> as more simple number
> to suppress this issue.
> 
> I suggest (64225 / 65536.0f) or (2007 / 2048.0f). The latter is more simple :)

Hi Takumi,

The exact value of the hysteresis constant is not very important. Go ahead and change it to a simpler value.

Thanks,
/jakob






More information about the llvm-commits mailing list