[clang-tools-extra] [Support] Add KnownBits::computeForSubBorrow (PR #67788)

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 10 05:33:45 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 cfe-commits mailing list