Fixed a failure in cost calculation for vector GEP
authorElena Demikhovsky <elena.demikhovsky@intel.com>
Tue, 1 Dec 2015 12:08:36 +0000 (12:08 +0000)
committerElena Demikhovsky <elena.demikhovsky@intel.com>
Tue, 1 Dec 2015 12:08:36 +0000 (12:08 +0000)
commitef5008e6d0966564098a04dbddb058a01c195062
tree594f056eb6c52c0d42e9aa1814d8f071788b61c9
parentc309d733467cec5a6b04706a6bccc0f399ad0fdf
Fixed a failure in cost calculation for vector GEP

Cost calculation for vector GEP failed with due to invalid cast to GEP index operand.
The bug is fixed, added a test.

http://reviews.llvm.org/D14976

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254408 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfoImpl.h
include/llvm/Analysis/VectorUtils.h
lib/Analysis/VectorUtils.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/Analysis/CostModel/X86/vector_gep.ll [new file with mode: 0644]