Recommit "[SLP] Fix issues with debug output in the SLP vectorizer."
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 3 Apr 2018 16:40:33 +0000 (16:40 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 3 Apr 2018 16:40:33 +0000 (16:40 +0000)
commitdf989c54cfeb5827619904f5e71511b7d48d157f
tree8dfc5f5742a52964d2a152d75512d2fd7ea13826
parentb79217077dfbad6c255282dd3b8f134a2876d5a0
Recommit "[SLP] Fix issues with debug output in the SLP vectorizer."

The primary issue here is that using NDEBUG alone isn't enough to guard
debug printing -- instead the DEBUG() macro needs to be used so that the
specific pass debug logging check is employed. Without this, every
asserts-enabled build was printing out information when it hit this.

I also fixed another place where we had multiple statements in a DEBUG
macro to use {}s to be a bit cleaner. And I fixed a place that used
errs() rather than dbgs().

llvm-svn: 329082
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp