commit | c348bc4aeb7473aa4ad1745657a6063039f6612c | [log] [tgz] |
---|---|---|
author | Simon Pilgrim <llvm-dev@redking.me.uk> | Wed Sep 14 17:15:26 2016 +0000 |
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | Wed Sep 14 17:15:26 2016 +0000 |
tree | 44429b04432864abad84b7c79f250e0cb3590e03 | |
parent | 1e06f6cc990c352c03abb148bd5ad5bf3aeb7a1a [diff] |
[X86][SSE] Improve recognition of i64 sitofp conversions that can be performed as i32 (PR29078) Until AVX512DQ we only support i64/vXi64 sitofp conversion as scalars. This patch sees if the sign bit extends far enough that we can truncate to a i32 type and then perform sitofp without loss of precision. Differential Revision: https://reviews.llvm.org/D24345 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281502 91177308-0d34-0410-b5e6-96231b3b80d8