[llvm] 995d1d1 - [SjLjEHPrepare] Use inverse_depth_first() instead of _ext variant (NFC). (#84920)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 13 02:47:20 PDT 2024


Author: Florian Hahn
Date: 2024-03-13T09:47:16Z
New Revision: 995d1d114e4e4ff708a03cdb0a975209c6197f9f

URL: https://github.com/llvm/llvm-project/commit/995d1d114e4e4ff708a03cdb0a975209c6197f9f
DIFF: https://github.com/llvm/llvm-project/commit/995d1d114e4e4ff708a03cdb0a975209c6197f9f.diff

LOG: [SjLjEHPrepare] Use inverse_depth_first() instead of _ext variant (NFC). (#84920)

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

PR: https://github.com/llvm/llvm-project/pull/84920

Added: 
    

Modified: 
    llvm/lib/CodeGen/SjLjEHPrepare.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SjLjEHPrepare.cpp b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
index 515b5764a09479..4bad57d279e9e4 100644
--- a/llvm/lib/CodeGen/SjLjEHPrepare.cpp
+++ b/llvm/lib/CodeGen/SjLjEHPrepare.cpp
@@ -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);
 }
 


        


More information about the llvm-commits mailing list