[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)
commitdf93ccf49a26f15a4be605bce13163c4190e8072
treee5cf1b865537f7c7a8a013e8f254fdc68400a7c4
parentad8d849f48c4301cb34fd54715135241531419da
[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.

llvm-svn: 231243
llvm/lib/Target/X86/X86FastISel.cpp
llvm/test/CodeGen/X86/fast-isel-int-float-conversion.ll