[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)
commit59898d8c6806990a39c62321a13927dbac8a2029
tree10f5412124c3f67ae416be7a29147fde6c6b22da
parent533ff009ff210a2068119f0fea32c5bfab76f238
[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

llvm-svn: 255315
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/sitofp.ll
llvm/test/Analysis/CostModel/X86/sse-itoi.ll [new file with mode: 0644]