[CostModel][X86] Fixed AVX1/AVX512 sdiv/udiv uniformconst costs for 256/512 bit integ...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 20 Oct 2016 18:00:35 +0000 (18:00 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 20 Oct 2016 18:00:35 +0000 (18:00 +0000)
commit365be4f95ccf9ab1cf217609678159acbe6b01a5
treedfe49b348986033c18ab25512672fe7dc6c64d8d
parent493091fdefc28ee4f64ae3640771237a0368ba72
[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
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/div.ll