llvm.org GIT mirror llvm / 1f2c0c9
cache result of operator* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107977 91177308-0d34-0410-b5e6-96231b3b80d8 Gabor Greif 10 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6666 if (BB)
6767 for (pred_iterator SI = pred_begin(BB), SE = pred_end(BB);
6868 SI != SE; ++SI) {
69 BasicBlock *P = *SI;
6970 // Does Node immediately dominate this predecessor?
70 DomTreeNode *SINode = DT[*SI];
71 DomTreeNode *SINode = DT[P];
7172 if (SINode && SINode->getIDom() != Node)
72 S.insert(*SI);
73 S.insert(P);
7374 }
7475
7576 // At this point, S is DFlocal. Now we union in DFup's of our children...