[llvm] ec26997 - [GlobalISel] Remove dead declarations (#216267)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 08:47:16 PDT 2026


Author: Kazu Hirata
Date: 2026-08-14T08:47:10-07:00
New Revision: ec26997e2e4606d97918a4a082c4f93ca38a6f46

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

LOG: [GlobalISel] Remove dead declarations (#216267)

tryCombineShuffleVector: The corresponding function definition was
removed on May 20, 2026 in commit
376870209db2e3ad33b082f839a7899c2972cc93.

translateCallBrIntrinsic: Added on December 4, 2025 in commit
e84fdbe1ef09c7c1ed2fab688607cf4b406fb395 without a corresponding
function definition.

buildAtomicRMWUSubCond and buildAtomicRMWUSubSat: Added on September 6,
2024 in commit 4af249fe6e81abd137c95bc25f5060ae305134ca without
corresponding function definitions.

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
    llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
    llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h b/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
index 123c39293d662..28495529ec160 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
@@ -309,11 +309,6 @@ class CombinerHelper {
   applyCombineBuildVectorOfBitcast(MachineInstr &MI,
                                    SmallVector<Register> &Ops) const;
 
-  /// Try to combine G_SHUFFLE_VECTOR into G_CONCAT_VECTORS.
-  /// Returns true if MI changed.
-  ///
-  /// \pre MI.getOpcode() == G_SHUFFLE_VECTOR.
-  LLVM_ABI bool tryCombineShuffleVector(MachineInstr &MI) const;
   /// Check if the G_SHUFFLE_VECTOR \p MI can be replaced by a
   /// concat_vectors.
   /// \p Ops will contain the operands needed to produce the flattened

diff  --git a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
index 9007d5276765f..63758a760d5ed 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
@@ -317,8 +317,6 @@ class LLVM_ABI IRTranslator : public MachineFunctionPass {
   bool translateInvoke(const User &U, MachineIRBuilder &MIRBuilder);
 
   bool translateCallBr(const User &U, MachineIRBuilder &MIRBuilder);
-  bool translateCallBrIntrinsic(const CallBrInst &I,
-                                MachineIRBuilder &MIRBuilder);
 
   bool translateLandingPad(const User &U, MachineIRBuilder &MIRBuilder);
 

diff  --git a/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h b/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
index ee533d2a8d8b8..0816186507ca1 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
@@ -1795,41 +1795,6 @@ class LLVM_ABI MachineIRBuilder {
                                              const SrcOp &Val,
                                              MachineMemOperand &MMO);
 
-  /// Build and insert `OldValRes<def> = G_ATOMICRMW_USUB_COND Addr, Val, MMO`.
-  ///
-  /// Atomically replace the value at \p Addr with the original value minus \p
-  /// Val if the original value is greater than or equal to \p Val, or leaves it
-  /// unchanged otherwise. Puts the original value from \p Addr in \p OldValRes.
-  ///
-  /// \pre setBasicBlock or setMI must have been called.
-  /// \pre \p OldValRes must be a generic virtual register.
-  /// \pre \p Addr must be a generic virtual register with pointer type.
-  /// \pre \p OldValRes, and \p Val must be generic virtual registers of the
-  ///      same type.
-  ///
-  /// \return a MachineInstrBuilder for the newly created instruction.
-  MachineInstrBuilder buildAtomicRMWUSubCond(const DstOp &OldValRes,
-                                             const SrcOp &Addr,
-                                             const SrcOp &Val,
-                                             MachineMemOperand &MMO);
-
-  /// Build and insert `OldValRes<def> = G_ATOMICRMW_USUB_SAT Addr, Val, MMO`.
-  ///
-  /// Atomically replace the value at \p Addr with the original value minus \p
-  /// Val, with clamping to zero if the unsigned subtraction would overflow.
-  /// Puts the original value from \p Addr in \p OldValRes.
-  ///
-  /// \pre setBasicBlock or setMI must have been called.
-  /// \pre \p OldValRes must be a generic virtual register.
-  /// \pre \p Addr must be a generic virtual register with pointer type.
-  /// \pre \p OldValRes, and \p Val must be generic virtual registers of the
-  ///      same type.
-  ///
-  /// \return a MachineInstrBuilder for the newly created instruction.
-  MachineInstrBuilder buildAtomicRMWUSubSat(const DstOp &OldValRes,
-                                            const SrcOp &Addr, const SrcOp &Val,
-                                            MachineMemOperand &MMO);
-
   /// Build and insert `G_FENCE Ordering, Scope`.
   MachineInstrBuilder buildFence(unsigned Ordering, unsigned Scope);
 


        


More information about the llvm-commits mailing list