Improve the remark generated for -Rpass-missed.
authorTyler Nowicki <tnowicki@apple.com>
Thu, 31 Jul 2014 21:22:22 +0000 (21:22 +0000)
committerTyler Nowicki <tnowicki@apple.com>
Thu, 31 Jul 2014 21:22:22 +0000 (21:22 +0000)
commitf7be7f15c1ff2882719f823fbe270e48bb0f4340
tree45dadcbd62c5083886fd5c963b4fc615f13a5113
parentdb50d8bdaf49b5cc9f6e62c0536078320ec3923e
Improve the remark generated for -Rpass-missed.

The current remark is ambiguous and makes it sounds like explicitly specifying vectorization will allow the loop to be vectorized. This is not the case. The improved remark directs the user to -Rpass-analysis=loop-vectorize to determine the cause of the pass-miss.

Reviewed by Arnold Schwaighofer`

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214445 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/X86/vectorization-remarks-missed.ll
test/Transforms/LoopVectorize/control-flow.ll
test/Transforms/LoopVectorize/no_switch.ll