From: Valery N Dmitriev Date: Thu, 29 Dec 2022 19:02:36 +0000 (-0800) Subject: [SLP] A couple of minor improvements for slp graph view - NFC. X-Git-Tag: upstream/17.0.6~22482 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8eb3698b940c4064b772f3ff5848d45f28523753;p=platform%2Fupstream%2Fllvm.git [SLP] A couple of minor improvements for slp graph view - NFC. Show ScatterVectorize nodes in frames of blue color and print vectorize tree indices. --- diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 65b9f57..7c695b6 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -3507,6 +3507,7 @@ template <> struct DOTGraphTraits : public DefaultDOTGraphTraits { std::string getNodeLabel(const TreeEntry *Entry, const BoUpSLP *R) { std::string Str; raw_string_ostream OS(Str); + OS << Entry->Idx << ".\n"; if (isSplat(Entry->Scalars)) OS << " "; for (auto *V : Entry->Scalars) { @@ -3524,6 +3525,8 @@ template <> struct DOTGraphTraits : public DefaultDOTGraphTraits { const BoUpSLP *) { if (Entry->State == TreeEntry::NeedToGather) return "color=red"; + if (Entry->State == TreeEntry::ScatterVectorize) + return "color=blue"; return ""; } };