]> granicus.if.org Git - llvm/commit
[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)
commit99edc4fc3cadf87372e92eb67def098792ed696e
tree0927b102ba1f79228f7d83699ae28ecba67521f5
parent446cd5eefea5c83cbd9d8ec514b7c7217219697e
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284744 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetTransformInfo.cpp
test/Analysis/CostModel/X86/div.ll