[PATCH] D150093: [KnownBits] Add implementation for `KnownBits::sdiv`
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 13 04:04:46 PDT 2023
RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.
LGTM - cheers
================
Comment at: llvm/lib/Support/KnownBits.cpp:559
+ } else if (LHS.isStrictlyPositive() && RHS.isNegative()) {
+ // Result is non-negative if Xxact OR LHS u>= -RHS.
+ if (Exact || LHS.getSignedMinValue().uge(-RHS.getSignedMinValue())) {
----------------
Xxact -> Exact
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150093/new/
https://reviews.llvm.org/D150093
More information about the llvm-commits
mailing list