Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ptrtoint(X) & mask != 0 implies X != null #63

Open
dtcxzyw opened this issue Dec 1, 2024 · 0 comments
Open

ptrtoint(X) & mask != 0 implies X != null #63

dtcxzyw opened this issue Dec 1, 2024 · 0 comments

Comments

@dtcxzyw
Copy link
Owner

dtcxzyw commented Dec 1, 2024

https://alive2.llvm.org/ce/z/kU_zwF

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(inaccessiblemem: write)
define noundef i1 @src3(ptr noundef %0) local_unnamed_addr #0 {
entry:
  %1 = ptrtoint ptr %0 to i64
  %2 = and i64 %1, 15
  %3 = icmp ne i64 %2, 0
  tail call void @llvm.assume(i1 %3)
  %4 = icmp eq ptr %0, null
  ret i1 %4
}

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none)
define noundef i1 @tgt3(ptr nocapture readnone %0) local_unnamed_addr #2 {
entry:
  ret i1 false
}

tests/llvm/optimized/Comment.cpp.ll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant