[X86][SSE] Update the cost table for integer-integer conversions on SSE2/SSE4.1.
authorCong Hou <congh@google.com>
Fri, 11 Dec 2015 00:31:39 +0000 (00:31 +0000)
committerCong Hou <congh@google.com>
Fri, 11 Dec 2015 00:31:39 +0000 (00:31 +0000)
commite265d9a2d4e159632e281c8c55b5b4030e58d94b
tree4257b03be04bf66270af4d4cf1251a2ff6f3cda8
parent849df7927ee243d1bdce23cf5d5b91e0c465f18b
[X86][SSE] Update the cost table for integer-integer conversions on SSE2/SSE4.1.

Previously in the conversion cost table there are no entries for integer-integer
conversions on SSE2. This will result in imprecise costs for certain vectorized
operations. This patch adds those entries for SSE2 and SSE4.1. The cost numbers
are counted from the result of running llc on the new test case in this patch.

Differential revision: http://reviews.llvm.org/D15132

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255315 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetTransformInfo.cpp
test/Analysis/CostModel/X86/sitofp.ll
test/Analysis/CostModel/X86/sse-itoi.ll [new file with mode: 0644]