Correct cost model for vector shift on AVX2
authorMichael Liao <michael.liao@intel.com>
Wed, 20 Mar 2013 22:01:10 +0000 (22:01 +0000)
committerMichael Liao <michael.liao@intel.com>
Wed, 20 Mar 2013 22:01:10 +0000 (22:01 +0000)
commit70dd7f999ddc454316a3a05053d1d02714fedc7b
treeece98a2eee9c716df3cb4f821f90f0aa2633a243
parent7430382970e26fb336a4f549e5e01d1ed3d5219d
Correct cost model for vector shift on AVX2

- After moving logic recognizing vector shift with scalar amount from
  DAG combining into DAG lowering, we declare to customize all vector
  shifts even vector shift on AVX is legal. As a result, the cost model
  needs special tuning to identify these legal cases.

llvm-svn: 177586
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/arith.ll