Use external df iterators to avoid revisiting blocks in functions with

multiple setjmp calls.

llvm-svn: 9093
This commit is contained in:
Chris Lattner 2003-10-13 16:44:50 +00:00
parent a3244bbefd
commit 951e7329e8
1 changed files with 3 additions and 1 deletions

View File

@ -137,7 +137,9 @@ bool LowerSetJmp::run(Module& M)
for (Value::use_iterator B = SetJmp->use_begin(), E = SetJmp->use_end();
B != E; ++B) {
BasicBlock* BB = cast<Instruction>(*B)->getParent();
DFSBlocks.insert(df_begin(BB), df_end(BB));
for (df_ext_iterator<BasicBlock*> I = df_ext_begin(BB, BBSet),
E = df_ext_end(BB, BBSet); I != E; ++I)
/* empty */;
}
while (!SetJmp->use_empty()) {