BBVectorize: Use target costs for incoming and outgoing values instead of the depth...
authorHal Finkel <hfinkel@anl.gov>
Thu, 1 Nov 2012 21:50:12 +0000 (21:50 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 1 Nov 2012 21:50:12 +0000 (21:50 +0000)
commit78fd353d5e5daedc47ecc31b6193ca48793c249c
tree281e57ed39b5d3e3e57985640866d89fa075fa39
parent5fc8c7cb8571f99b69264aeba48c45eed1c69f6a
BBVectorize: Use target costs for incoming and outgoing values instead of the depth heuristic.

When target cost information is available, compute explicit costs of inserting and
extracting values from vectors. At this point, all costs are estimated using the
target information, and the chain-depth heuristic is not needed. As a result, it is now, by
default, disabled when using target costs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167256 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/BBVectorize.cpp
test/Transforms/BBVectorize/X86/simple-ldstr.ll [new file with mode: 0644]
test/Transforms/BBVectorize/X86/simple.ll