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)
commit064896bbc59a84e34efca221895927ca79c17fa5
tree404bd503de88c44857c309a6aa113929d7f8ddb4
parent78c32d75e0f50b1a5a694434a004516f60228113
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

llvm-svn: 214599
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/conditional-assignment.ll [new file with mode: 0644]