mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-01-03 09:23:07 +00:00
[LCG] Rather than removing nodes from the SCC entry set when we process
them, just skip over any DFS-numbered nodes when finding the next root of a DFS. This allows the entry set to just be a vector as we populate it from a uniqued source. It also removes the possibility for a linear scan of the entry set to actually do the removal which can make things go quadratic if we get unlucky. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207312 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -384,7 +384,7 @@ private:
|
||||
SmallVector<std::pair<Node *, iterator>, 4> DFSStack;
|
||||
|
||||
/// \brief Set of entry nodes not-yet-processed into SCCs.
|
||||
SmallSetVector<Function *, 4> SCCEntryNodes;
|
||||
SmallVector<Function *, 4> SCCEntryNodes;
|
||||
|
||||
/// \brief Stack of nodes the DFS has walked but not yet put into a SCC.
|
||||
SmallVector<Node *, 4> PendingSCCStack;
|
||||
|
||||
Reference in New Issue
Block a user