TargetTransformInfo: address calculation parameter for gather/scather
authorArnold Schwaighofer <aschwaighofer@apple.com>
Fri, 12 Jul 2013 19:16:02 +0000 (19:16 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Fri, 12 Jul 2013 19:16:02 +0000 (19:16 +0000)
commitc0a11edba6ea46c782672ab3fb4e4ab3dc267a22
treedfd8a80460e3764c602d6e8df3e60176dab3f136
parentec1170615515081135ea324e545b57c9503cd574
TargetTransformInfo: address calculation parameter for gather/scather

Address calculation for gather/scather in vectorized code can incur a
significant cost making vectorization unbeneficial. Add infrastructure to add
cost.
Tests and cost model for targets will be in follow-up commits.

radar://14351991

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186187 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfo.h
lib/Analysis/TargetTransformInfo.cpp
lib/CodeGen/BasicTargetTransformInfo.cpp
lib/Target/ARM/ARMTargetTransformInfo.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp