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)
commit560545b85f933520c7af38dbbc357f2ff9194c5f
tree5b155c13d3e84f33428be518b1fb70cd44fff307
parent3eb851f370eeea7b11a4f6da3667f09c59486f61
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.

llvm-svn: 167256
llvm/lib/Transforms/Vectorize/BBVectorize.cpp
llvm/test/Transforms/BBVectorize/X86/simple-ldstr.ll [new file with mode: 0644]
llvm/test/Transforms/BBVectorize/X86/simple.ll