diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-04-08 18:05:48 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-04-08 18:05:48 +0000 |
commit | 813456527e73f0c1468514c523c6258d360bcd91 (patch) | |
tree | 8d591bd96535e20f89a92083517f1bc0669f8952 /test/Analysis/CostModel/PowerPC | |
parent | 6b369ceb582f2deba9c252af301667975456ff86 (diff) | |
download | external_llvm-813456527e73f0c1468514c523c6258d360bcd91.zip external_llvm-813456527e73f0c1468514c523c6258d360bcd91.tar.gz external_llvm-813456527e73f0c1468514c523c6258d360bcd91.tar.bz2 |
X86 cost model: Model cost for uitofp and sitofp on SSE2
The costs are overfitted so that I can still use the legalization factor.
For example the following kernel has about half the throughput vectorized than
unvectorized when compiled with SSE2. Before this patch we would vectorize it.
unsigned short A[1024];
double B[1024];
void f() {
int i;
for (i = 0; i < 1024; ++i) {
B[i] = (double) A[i];
}
}
radar://13599001
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/CostModel/PowerPC')
0 files changed, 0 insertions, 0 deletions