SLPVectorizer: Take credit for free extractelement instructions
authorArnold Schwaighofer <aschwaighofer@apple.com>
Fri, 28 Mar 2014 17:21:32 +0000 (17:21 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Fri, 28 Mar 2014 17:21:32 +0000 (17:21 +0000)
commitc9d58e8d32731990a7a49c0761b661e511b7c640
tree555f310c4f85e44c1ea6c737a012bdebf26d1f14
parentb0d3bcdd328ad8da31058bd8a945fc92e88b9f41
SLPVectorizer: Take credit for free extractelement instructions

Extract element instructions that will be removed when vectorzing lower the
cost.

Patch by Arch D. Robison!

llvm-svn: 205020
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector.ll