[llvm] r355912 - Try to fix SLPVectorizer BoUpSLP::BoEdgeInfo::dump visibility on non-debug builds
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 12 04:31:07 PDT 2019
Author: rksimon
Date: Tue Mar 12 04:31:06 2019
New Revision: 355912
URL: http://llvm.org/viewvc/llvm-project?rev=355912&view=rev
Log:
Try to fix SLPVectorizer BoUpSLP::BoEdgeInfo::dump visibility on non-debug builds
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=355912&r1=355911&r2=355912&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Tue Mar 12 04:31:06 2019
@@ -613,13 +613,11 @@ public:
int Idx = -1;
/// The operand index of the use.
unsigned EdgeIdx = UINT_MAX;
-#ifndef NDEBUG
+
/// Debug print.
void dump(raw_ostream &OS) const {
OS << "{User:" << Idx << " EdgeIdx:" << EdgeIdx << "}";
}
- LLVM_DUMP_METHOD void dump() const { dump(dbgs()); }
-#endif
};
private:
More information about the llvm-commits
mailing list