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

sdiv exact X, 24 u< 3 implies X u!= 72 #64

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

sdiv exact X, 24 u< 3 implies X u!= 72 #64

dtcxzyw opened this issue Dec 1, 2024 · 3 comments

Comments

@dtcxzyw
Copy link
Owner

dtcxzyw commented Dec 1, 2024

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

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(inaccessiblemem: write)
define noundef i1 @src51(i64 noundef %0) local_unnamed_addr #0 {
entry:
  %1 = icmp eq i64 %0, 72
  %2 = sdiv exact i64 %0, 24
  %3 = icmp ult i64 %2, 3
  tail call void @llvm.assume(i1 %3)
  ret i1 %1
}

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

tests/llvm/optimized/Compilation.cpp.ll

@dtcxzyw dtcxzyw changed the title sdiv X, 24 u< 3 implies X u!= 72 sdiv exact X, 24 u< 3 implies X u!= 72 Dec 1, 2024
@dtcxzyw
Copy link
Owner Author

dtcxzyw commented Dec 1, 2024

tests/meshlab/optimized/filter_layer.cpp.ll

@dtcxzyw
Copy link
Owner Author

dtcxzyw commented Dec 1, 2024

tests/meshlab/optimized/filter_trioptimize.cpp.ll

@dtcxzyw
Copy link
Owner Author

dtcxzyw commented Dec 1, 2024

tests/meshlab/optimized/quadric_simp.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