[libc-commits] [libc] [Support] Add KnownBits::computeForSubBorrow (PR #67788)

Simon Pilgrim via libc-commits libc-commits at lists.llvm.org
Tue Oct 10 05:33:40 PDT 2023


================
@@ -332,6 +332,10 @@ struct KnownBits {
   static KnownBits computeForAddSub(bool Add, bool NSW, const KnownBits &LHS,
                                     KnownBits RHS);
 
+  /// Compute known bits results from subtracting RHS from LHS.
----------------
RKSimon wrote:

Add to comment "and a 1-bit borrow"

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


More information about the libc-commits mailing list