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

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 09:25:34 PDT 2024


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/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

>From 87e15f4ffc1f957dfdc04616fe343f5446a3b5f2 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Fri, 31 May 2024 11:54:24 -0700
Subject: [PATCH] [KnownBits] Remove commonBits

commonBits has been deprecated since:

  commit d8229e2f1424504f7ea81a0dcc7326d122be2872
  Author: Jay Foad <jay.foad at amd.com>
  Date:   Wed May 10 16:50:33 2023 +0100
---
 llvm/include/llvm/Support/KnownBits.h | 6 ------
 1 file changed, 6 deletions(-)

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