mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-30 20:34:21 +00:00
Avoid copying and recopying a std::set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109405 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e96a6fe351
commit
d2d975233d
@ -140,12 +140,8 @@ void DominanceFrontier::splitBlock(BasicBlock *NewBB) {
|
||||
|
||||
// NewBBSucc inherits original NewBB frontier.
|
||||
DominanceFrontier::iterator NewBBI = find(NewBB);
|
||||
if (NewBBI != end()) {
|
||||
DominanceFrontier::DomSetType NewBBSet = NewBBI->second;
|
||||
DominanceFrontier::DomSetType NewBBSuccSet;
|
||||
NewBBSuccSet.insert(NewBBSet.begin(), NewBBSet.end());
|
||||
addBasicBlock(NewBBSucc, NewBBSuccSet);
|
||||
}
|
||||
if (NewBBI != end())
|
||||
addBasicBlock(NewBBSucc, NewBBI->second);
|
||||
|
||||
// If NewBB dominates NewBBSucc, then DF(NewBB) is now going to be the
|
||||
// DF(NewBBSucc) without the stuff that the new block does not dominate
|
||||
|
Loading…
x
Reference in New Issue
Block a user