Add Rpass-missed and Rpass-analysis reports to the loop vectorizer. The remarks give...
authorTyler Nowicki <tnowicki@apple.com>
Wed, 25 Jun 2014 17:50:15 +0000 (17:50 +0000)
committerTyler Nowicki <tnowicki@apple.com>
Wed, 25 Jun 2014 17:50:15 +0000 (17:50 +0000)
commitd5a8fa72bb41eedbfde7e8124414123c49a2351c
tree19220adf400ad00c6817f0b226ef3b861ea62b40
parentcae1ea691d79ce786e9209cb5917036f42f13d7c
Add Rpass-missed and Rpass-analysis reports to the loop vectorizer. The remarks give the vector width of vectorized loops and a brief analysis of loops that fail to be vectorized. For example, an analysis will be generated for loops containing control flow that cannot be simplified to a select. The optimization remarks also give the debug location of expressions that cannot be vectorized, for example the location of an unvectorizable call.

Reviewed by: Arnold Schwaighofer

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211721 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/X86/vectorization-remarks-missed.ll [new file with mode: 0644]
test/Transforms/LoopVectorize/X86/vectorization-remarks.ll
test/Transforms/LoopVectorize/control-flow.ll [new file with mode: 0644]
test/Transforms/LoopVectorize/no_switch.ll [new file with mode: 0644]