[llvm] [InstCombine] Move nonnull assumptions to the base of a gep (PR #195650)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 8 08:22:48 PDT 2026


================
@@ -751,6 +751,16 @@ define void @nonnull_only_ephemeral_use(ptr %p) {
   ret void
 }
 
+define void @nonnull_gep_inbounds_bundle(ptr %p, i64 %i) {
----------------
dtcxzyw wrote:

Please add a negative test with `null_pointer_is_valid`.

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


More information about the llvm-commits mailing list