[llvm] [KnownBits] Remove commonBits (PR #95430)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 09:26:07 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

commonBits has been deprecated since:

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

---
Full diff: https://github.com/llvm/llvm-project/pull/95430.diff


1 Files Affected:

- (modified) llvm/include/llvm/Support/KnownBits.h (-6) 


``````````diff
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();

``````````

</details>


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


More information about the llvm-commits mailing list