Skip to content

Commit

Permalink
[SjLjEHPrepare] Use inverse_depth_first() instead of _ext variant (NF…
Browse files Browse the repository at this point in the history
…C). (llvm#84920)

inverse_depth_first df_iterator_default_set as default set, so there's
no need to explicitly use inverse_depth_first_ext.

PR: llvm#84920
  • Loading branch information
fhahn authored Mar 13, 2024
1 parent e371ada commit 995d1d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/lib/CodeGen/SjLjEHPrepare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,7 @@ static void MarkBlocksLiveIn(BasicBlock *BB,
if (!LiveBBs.insert(BB).second)
return; // already been here.

df_iterator_default_set<BasicBlock*> Visited;

for (BasicBlock *B : inverse_depth_first_ext(BB, Visited))
for (BasicBlock *B : inverse_depth_first(BB))
LiveBBs.insert(B);
}

Expand Down

0 comments on commit 995d1d1

Please sign in to comment.