]> granicus.if.org Git - llvm/commit
[X86] Don't use Expand for i32 fp_to_uint on SSE1/2 targets on 32-bit target.
authorCraig Topper <craig.topper@intel.com>
Tue, 3 Sep 2019 05:57:18 +0000 (05:57 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 3 Sep 2019 05:57:18 +0000 (05:57 +0000)
commite0e7f0aaad4e19eea770f38ea769050dc3fa71ab
tree6c5ad781678d46c3f81aa1acfeab3a00df816339
parentb903fb2c6ec7e2c19a811327ce75e59329fe69c2
[X86] Don't use Expand for i32 fp_to_uint on SSE1/2 targets on 32-bit target.

Use Custom lowering instead. Fall back to default expansion only
when the scalar FP type belongs in an XMM register. This improves
lowering for i32 to fp80, and also i32 to double on SSE1 only.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370699 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/scalar-fp-to-i32.ll