summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/LowerSetJmp.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-13 16:44:50 +0000
committerChris Lattner <sabre@nondot.org>2003-10-13 16:44:50 +0000
commit46e033d28d3d3f883432754ee65ce66b49b17874 (patch)
tree666f37295c64453af96113c2abea43ddda6ebd09 /lib/Transforms/IPO/LowerSetJmp.cpp
parent1e79609e304a24e0cad68534ddf3371479d33b86 (diff)
downloadllvm-46e033d28d3d3f883432754ee65ce66b49b17874.tar.gz
llvm-46e033d28d3d3f883432754ee65ce66b49b17874.tar.bz2
llvm-46e033d28d3d3f883432754ee65ce66b49b17874.tar.xz
Use external df iterators to avoid revisiting blocks in functions with
multiple setjmp calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LowerSetJmp.cpp')
-rw-r--r--lib/Transforms/IPO/LowerSetJmp.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/LowerSetJmp.cpp b/lib/Transforms/IPO/LowerSetJmp.cpp
index 36f06bd607..5be2514a4e 100644
--- a/lib/Transforms/IPO/LowerSetJmp.cpp
+++ b/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<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()) {