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)
commit4b07b007864ccd665e373b7e1512f28382873f54
treedff283f83cea536b04e68f0e9490b3e8e503e757
parent07cdffc324b8fd336b04e8a7f83d7c3ce1ba7815
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

llvm-svn: 211721
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/X86/vectorization-remarks-missed.ll [new file with mode: 0644]
llvm/test/Transforms/LoopVectorize/X86/vectorization-remarks.ll
llvm/test/Transforms/LoopVectorize/control-flow.ll [new file with mode: 0644]
llvm/test/Transforms/LoopVectorize/no_switch.ll [new file with mode: 0644]