Add diagnostics to the vectorizer cost model.
authorTyler Nowicki <tnowicki@apple.com>
Sat, 2 Aug 2014 00:14:03 +0000 (00:14 +0000)
committerTyler Nowicki <tnowicki@apple.com>
Sat, 2 Aug 2014 00:14:03 +0000 (00:14 +0000)
commit842a06e8dd73ed9cd541c4e8c786c425af9bc461
tree263651a5500934d6be5b8496e0c89d2421c29499
parent1b23e26921e84f15c6cff56057a4dd66de04dcd3
Add diagnostics to the vectorizer cost model.

When the cost model determines vectorization is not possible/profitable these remarks print an analysis of that decision.

Note that in selectVectorizationFactor() we can assume that OptForSize and ForceVectorization are mutually exclusive.

Reviewed by Arnold Schwaighofer

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214599 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/conditional-assignment.ll [new file with mode: 0644]