diff options
author | Jessica Paquette <jpaquette@apple.com> | 2018-11-06 22:23:13 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2018-11-06 22:23:13 +0000 |
commit | 935d373db93195eaa1f00ceaf3907692c1f5432c (patch) | |
tree | 9a8455c92e772a37ff5d7f35581744c52ba6748a /llvm/lib/CodeGen | |
parent | 979cf1e566007dbedd01d5e65dea1b12160d66ce (diff) | |
download | bcm5719-llvm-935d373db93195eaa1f00ceaf3907692c1f5432c.tar.gz bcm5719-llvm-935d373db93195eaa1f00ceaf3907692c1f5432c.zip |
[MachineOutliner][NFC] Remove OccurrenceCount from SuffixTreeNode
After changing the way we find candidates in r346269, this is no longer used.
llvm-svn: 346275
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MachineOutliner.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index 021e6c3acde..bccf9523312 100644 --- a/llvm/lib/CodeGen/MachineOutliner.cpp +++ b/llvm/lib/CodeGen/MachineOutliner.cpp @@ -167,12 +167,6 @@ struct SuffixTreeNode { /// The parent of this node. Every node except for the root has a parent. SuffixTreeNode *Parent = nullptr; - /// The number of times this node's string appears in the tree. - /// - /// This is equal to the number of leaf children of the string. It represents - /// the number of suffixes that the node's string is a prefix of. - unsigned OccurrenceCount = 0; - /// The length of the string formed by concatenating the edge labels from the /// root to this node. unsigned ConcatLen = 0; @@ -352,7 +346,6 @@ private: // If yes, give it a suffix index and bump its parent's occurrence count. CurrNode.SuffixIdx = Str.size() - CurrIdx; assert(CurrNode.Parent && "CurrNode had no parent!"); - CurrNode.Parent->OccurrenceCount++; } } |