OSDN Git Service

Try to fix SLPVectorizer BoUpSLP::BoEdgeInfo::dump visibility on non-debug builds
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 12 Mar 2019 11:31:06 +0000 (11:31 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 12 Mar 2019 11:31:06 +0000 (11:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355912 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index 319b99b..a8b7856 100644 (file)
@@ -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: