OSDN Git Service

[X86] Move all the SSE legality checks out of FP_TO_INTHelper and up to LowerFP_TO_IN...
authorCraig Topper <craig.topper@intel.com>
Fri, 15 Feb 2019 19:21:39 +0000 (19:21 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 15 Feb 2019 19:21:39 +0000 (19:21 +0000)
commitcb22b0f62e8f436cabb5daf6d86f5d186cc424dc
treec1afef007c5060b7bf79002aa454bcf270886440
parent9129f92efa6c011b7e2cbc5bd8c216245f2f700e
[X86] Move all the SSE legality checks out of FP_TO_INTHelper and up to LowerFP_TO_INT. NFCI

These checks aren't needed on the call to FP_TO_INTHelper from the type legalizer for splitting i64. We always want to use X87 FIST/FISTT to memory there.

Moving up the SSE checks will allow this routine to focus on what it cares about and makes its return semantics cleaner.

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