mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-13 21:05:16 +00:00
Check empty dominance frontier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52437 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
44f6a2c951
commit
6d0cc55ef3
@ -944,6 +944,9 @@ public:
|
||||
// itself is not member of NewBB's dominance frontier.
|
||||
DominanceFrontier::iterator NewDFI = find(NewBB);
|
||||
DominanceFrontier::iterator DFI = find(BB);
|
||||
// If BB was an entry block then its frontier is empty.
|
||||
if (DFI == end())
|
||||
return;
|
||||
DominanceFrontier::DomSetType BBSet = DFI->second;
|
||||
for (DominanceFrontier::DomSetType::iterator BBSetI = BBSet.begin(),
|
||||
BBSetE = BBSet.end(); BBSetI != BBSetE; ++BBSetI) {
|
||||
|
Loading…
Reference in New Issue
Block a user