An x86 function returns a floating point value in st(0), and we must make sure
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 10 Jul 2010 04:04:25 +0000 (04:04 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 10 Jul 2010 04:04:25 +0000 (04:04 +0000)
commitd737fcafc4cedcbe798930d96203a9e22c1e6e68
tree8f6e0dd9f0cbdf526238e90117dbe55f580ff229
parent7a029b6d7e58cb0f1010f14d99d7661e387cfb54
An x86 function returns a floating point value in st(0), and we must make sure
it is popped, even if it is ununsed. A CopyFromReg node is too weak to represent
the required sideeffect, so insert an FpGET_ST0 instruction directly instead.

This will matter when CopyFromReg gets lowered to a generic COPY instruction.

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