We no longer care about the order of blocks in these collections,
so can change to SmallPtrSets, making contains checks quicker.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
For readability, you could consider creating a type alias for "SmallPtrSet<BasicBlock *, 4>", but that's just a nit and this looks like some straightforward refactoring to me.