OSDN Git Service

[X86] Use default expansion for (i64 fp_to_uint f80) when avx512 is enabled on 64...
authorCraig Topper <craig.topper@intel.com>
Wed, 13 Feb 2019 07:42:34 +0000 (07:42 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 13 Feb 2019 07:42:34 +0000 (07:42 +0000)
commit7cbba3526136e1802a9292283248aaba85556320
tree4e051395a970d16189b64c16aebc236b8cda6b3d
parent0e7879be673c21afe9629400c32eab93e37bbf2c
[X86] Use default expansion for (i64 fp_to_uint f80) when avx512 is enabled on 64-bit targets to match what happens without avx512.

In 64-bit mode prior to avx512 we use Expand, but with avx512 we need to make f32/f64 conversions Legal so we use Custom and then do our own expansion for f80. But this seems to produce codegen differences relative to avx2. This patch corrects this.

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