OSDN Git Service

Change the fp to integer code to not perform 2-byte stores followed by
authorChris Lattner <sabre@nondot.org>
Sat, 30 Jul 2005 00:17:52 +0000 (00:17 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 30 Jul 2005 00:17:52 +0000 (00:17 +0000)
commita35e1dfd12b9eaa440af68c760394bef9ac17335
tree8ca1a68d97f3d6ee63b65fb8c0de47c64b67d088
parent169974856781a1ce27af9ce6220c390b20c9e6dd
Change the fp to integer code to not perform 2-byte stores followed by
1 byte loads and other operations.  This is bad for store-forwarding on
common CPUs.  We now do this:

fnstcw WORD PTR [%ESP]
mov %AX, WORD PTR [%ESP]

instead of:

fnstcw WORD PTR [%ESP]
mov %AL, BYTE PTR [%ESP + 1]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22559 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelPattern.cpp