From 951e7329e81eb176329a7fd5c91b00a9ee7dc62e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 13 Oct 2003 16:44:50 +0000 Subject: [PATCH] Use external df iterators to avoid revisiting blocks in functions with multiple setjmp calls. llvm-svn: 9093 --- llvm/lib/Transforms/IPO/LowerSetJmp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/LowerSetJmp.cpp b/llvm/lib/Transforms/IPO/LowerSetJmp.cpp index 36f06bd607f5..5be2514a4ea4 100644 --- a/llvm/lib/Transforms/IPO/LowerSetJmp.cpp +++ b/llvm/lib/Transforms/IPO/LowerSetJmp.cpp @@ -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(*B)->getParent(); - DFSBlocks.insert(df_begin(BB), df_end(BB)); + for (df_ext_iterator I = df_ext_begin(BB, BBSet), + E = df_ext_end(BB, BBSet); I != E; ++I) + /* empty */; } while (!SetJmp->use_empty()) {