1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/Analysis/CostModel
Simon Pilgrim 01729bd834 [X86][SSE] Improve cost model for i64 vector comparisons on pre-SSE42 targets
As discussed on PR24888, until SSE42 we don't have access to PCMPGTQ for v2i64 comparisons, but the cost models don't reflect this, resulting in over-optimistic vectorizaton.

This patch adds SSE2 'base level' costs that match what a typical target is capable of and only reduces the v2i64 costs at SSE42.

Technically SSE41 provides a PCMPEQQ v2i64 equality test, but as getCmpSelInstrCost doesn't give us a way to discriminate between comparison test types we can't easily make use of this, otherwise we could split the cost of integer equality and greater-than tests to give better costings of each.

Differential Revision: http://reviews.llvm.org/D20057

llvm-svn: 268972
2016-05-09 21:14:38 +00:00
..
AArch64 [AArch64] Reduce vector insert/extract cost for Kryo 2016-02-18 18:35:45 +00:00
AMDGPU AMDGPU: Cost model for basic integer operations 2016-03-25 01:16:40 +00:00
ARM [ARM] Don't pessimize i32 vselect. 2015-11-17 17:25:15 +00:00
PowerPC [TTI] Let the cost model estimate ctpop costs based on legality 2016-03-31 10:42:40 +00:00
X86 [X86][SSE] Improve cost model for i64 vector comparisons on pre-SSE42 targets 2016-05-09 21:14:38 +00:00
no_info.ll Roll forward r243250 2015-07-26 19:10:03 +00:00