[llvm] [LowerSwitch] Don't let pass manager handle the dependency (PR #68662)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 10:01:12 PDT 2023


================
@@ -702,6 +702,8 @@ BasicBlock *CreateControlFlowHub(
 // successors
 void InvertBranch(BranchInst *PBI, IRBuilderBase &Builder);
 
+// Check whether the block only has simple terminator: br/brcond/unreachable/ret
+bool hasOnlySimpleTerminator(const BasicBlock *BB);
----------------
aeubanks wrote:

if all users are checking all blocks, we should just make this API do that, instead of check a single block

https://github.com/llvm/llvm-project/pull/68662


More information about the llvm-commits mailing list