From 5e2214cca618fc19557edabff3f40f43ecb47392 Mon Sep 17 00:00:00 2001 From: Erik Eckstein Date: Fri, 1 Aug 2014 09:47:38 +0000 Subject: [PATCH] SLPVectorizer: fix build problem in Release configuration git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214496 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Vectorize/SLPVectorizer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index a9e6ffe992c..cb9def22542 100644 --- a/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -642,8 +642,10 @@ private: bool IsScheduled; }; +#ifndef NDEBUG friend raw_ostream &operator<<(raw_ostream &os, const BoUpSLP::ScheduleData &SD); +#endif /// Contains all scheduling data for a basic block. /// @@ -827,11 +829,13 @@ private: /// Instruction builder to construct the vectorized tree. IRBuilder<> Builder; }; - + +#ifndef NDEBUG raw_ostream &operator<<(raw_ostream &os, const BoUpSLP::ScheduleData &SD) { SD.dump(os); return os; } +#endif void BoUpSLP::buildTree(ArrayRef Roots, ArrayRef UserIgnoreLst) {