[X86][FastISel] Simplify the logic in method X86SelectSIToFP.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Wed, 4 Mar 2015 14:23:25 +0000 (14:23 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Wed, 4 Mar 2015 14:23:25 +0000 (14:23 +0000)
commitda5e5688e9b94dd5b372359b4f8102ccca000b14
tree825f333fcc2b69b6006ff5f7be1e686983096db8
parent826cbaf934b102c853c03116b6e5d92ace364666
[X86][FastISel] Simplify the logic in method X86SelectSIToFP.

The target-independent selection algorithm in FastISel already knows how
to select a SINT_TO_FP if the target is SSE but not AVX.

On targets that have SSE but not AVX, the tablegen'd 'fastEmit' functions
for ISD::SINT_TO_FP know how to select instruction X86::CVTSI2SSrr
(for an i32 to f32 conversion) and X86::CVTSI2SDrr (for an i32 to f64
conversion).

This patch simplifies the logic in method X86SelectSIToFP knowing that
the code would not be reachable if the subtarget doesn't have AVX.
No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231243 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/fast-isel-int-float-conversion.ll