We don't need to use a SmallSetVector to keep track of the worklist. We only insert into the worklist if the extension is not already in the Exts map. We immediately add it the Exts map at the same time we add it to the worklist. If we encounter the extension again it will already be in Exts so we won't try to add it to the worklist again. We can just use a SmallVector for the Worklist.
35 KiB
35 KiB