[llvm] [SimplifyCFG] Avoid scanning functions multiple times in `removeUnreachableBlocks` (PR #213416)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 06:15:14 PDT 2026


dtcxzyw wrote:

> I think one primary source of those "in-block unreachable instructions" is InstCombine to avoid modifying the CFG there?

Yep, `CreateNonTerminatorUnreachable` uses `store i1 true, ptr poison` as the in-block unreachable instruction.


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


More information about the llvm-commits mailing list