[CostModel][X86] Fixed AVX1/AVX512 sdiv/udiv general costs for 256/512 bit integer...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 20 Oct 2016 16:39:11 +0000 (16:39 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 20 Oct 2016 16:39:11 +0000 (16:39 +0000)
commit025e26dd324eb254964c41de3717972bc3529f44
tree1e483dd445aa6bcb226b5ab499ee4b04c612bab2
parente55fd41f73a1487757b77fdd4db552edb21de5bc
[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
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/div.ll