Improved printing of analysis diagnostics in the loop vectorizer.
authorTyler Nowicki <tyler.nowicki@gmail.com>
Thu, 27 Aug 2015 01:02:04 +0000 (01:02 +0000)
committerTyler Nowicki <tyler.nowicki@gmail.com>
Thu, 27 Aug 2015 01:02:04 +0000 (01:02 +0000)
commit8faf2a455ae8cd9a360ef95c341672450e113cdf
tree732001c7c8513980c2d9861ca8489f7d08110cec
parent5bd75b1a3b8fcb83e2e53392bb8f84eb2ebf1368
Improved printing of analysis diagnostics in the loop vectorizer.

This patch ensures that every analysis diagnostic produced by the vectorizer
will be printed if the loop has a vectorization hint on it. The condition has
also been improved to prevent printing when a disabling hint is specified.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246132 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/no_switch.ll