Simon Pilgrim
d3f0d03cc5
[X86][AVX1] Account for cost of extract/insert of 256-bit SDIV/UDIV by mul sequences
...
llvm-svn: 303017
2017-05-14 18:52:15 +00:00
Simon Pilgrim
365be4f95c
[CostModel][X86] Fixed AVX1/AVX512 sdiv/udiv uniformconst costs for 256/512 bit integer vectors
...
We weren't checking for uniform const costs before the general cost, resulting in very high estimates.
llvm-svn: 284755
2016-10-20 18:00:35 +00:00
Simon Pilgrim
1388c0acc1
[CostModel][X86] Added tests for sdiv/udiv costs for uniform const and uniform const power-of-2
...
Shows poor costings in AVX1/AVX512BW for certain vector types
llvm-svn: 284748
2016-10-20 17:16:38 +00:00
Simon Pilgrim
025e26dd32
[CostModel][X86] Fixed AVX1/AVX512 sdiv/udiv general costs for 256/512 bit integer vectors
...
We weren't accounting for legal types on every subtarget, meaning that many of the costs were using defaults.
We still don't correctly cost (or test) the 512-bit sdiv/udiv by uniform const cases, nor the power-of-2 cases.
llvm-svn: 284744
2016-10-20 16:39:11 +00:00
Simon Pilgrim
16cc616ebc
[CostModel][X86] Added tests for sdiv/udiv costs for scalar and 128/256/512 bit integer vectors
...
Shows current bug in AVX1/AVX512BW costs for 256 bit vector types
llvm-svn: 284723
2016-10-20 12:34:00 +00:00
Arnold Schwaighofer
a04b9ef1e8
X86 cost model: Vectorizing integer division is a bad idea
...
radar://14057959
llvm-svn: 184872
2013-06-25 19:14:09 +00:00