[CostModel] Fixed AVX integer shift costs
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 17 Oct 2015 13:23:38 +0000 (13:23 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 17 Oct 2015 13:23:38 +0000 (13:23 +0000)
commit913c649b161a892769187e2284131f87c24a57c7
treea804410469306649aa674fbca371ee29905c6d82
parent1157bfddb957c70ccca787fce406c76efbd50ca2
[CostModel] Fixed AVX integer shift costs

Targets with AVX but without AVX2 were incorrectly reporting costs of 256-bit integer shifts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250611 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetTransformInfo.cpp
test/Analysis/CostModel/X86/vshift-ashr-cost.ll
test/Analysis/CostModel/X86/vshift-lshr-cost.ll
test/Analysis/CostModel/X86/vshift-shl-cost.ll