[llvm] [LLVM] Fix assertion when dropping type tests with SelectInst users (PR #185523)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 15:46:57 PDT 2026


================
@@ -0,0 +1,19 @@
+; Test to ensure dropping of type tests can handle a select feeding the assume.
+; This pattern is created by SimplifyCFG when merging two type test + assume
+; sequences from different branches.
----------------
ilovepi wrote:

```suggestion
;; Test to ensure dropping of type tests can handle a select feeding the assume.
;; This pattern is created by SimplifyCFG when merging two type test + assume
;; sequences from different branches.
```
nit: we normally have an extra comment marker in test files to make it clear its not part of a RUN line. That or we use the comment label `; COM: whatever comment...`

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


More information about the llvm-commits mailing list