[llvm] 890ab28 - [KnownBits] Remove commonBits (#95430)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 09:32:11 PDT 2024


Author: Kazu Hirata
Date: 2024-06-13T09:32:07-07:00
New Revision: 890ab282781c3f78e98b5fc73a9f42d53b2220eb

URL: https://github.com/llvm/llvm-project/commit/890ab282781c3f78e98b5fc73a9f42d53b2220eb
DIFF: https://github.com/llvm/llvm-project/commit/890ab282781c3f78e98b5fc73a9f42d53b2220eb.diff

LOG: [KnownBits] Remove commonBits (#95430)

commonBits has been deprecated since:

  commit d8229e2f1424504f7ea81a0dcc7326d122be2872
  Author: Jay Foad <jay.foad at amd.com>
  Date:   Wed May 10 16:50:33 2023 +0100

Added: 
    

Modified: 
    llvm/include/llvm/Support/KnownBits.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/KnownBits.h b/llvm/include/llvm/Support/KnownBits.h
index c206bd77d5880..7ed3d525bd8fb 100644
--- a/llvm/include/llvm/Support/KnownBits.h
+++ b/llvm/include/llvm/Support/KnownBits.h
@@ -311,12 +311,6 @@ struct KnownBits {
     return KnownBits(Zero | RHS.Zero, One | RHS.One);
   }
 
-  /// Compute known bits common to LHS and RHS.
-  LLVM_DEPRECATED("use intersectWith instead", "intersectWith")
-  static KnownBits commonBits(const KnownBits &LHS, const KnownBits &RHS) {
-    return LHS.intersectWith(RHS);
-  }
-
   /// Return true if LHS and RHS have no common bits set.
   static bool haveNoCommonBitsSet(const KnownBits &LHS, const KnownBits &RHS) {
     return (LHS.Zero | RHS.Zero).isAllOnes();


        


More information about the llvm-commits mailing list