[llvm] c3851a9 - [AMDGPU] Remove dead handling of S_SETPC_B64 (#71275)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 6 10:35:53 PST 2023
Author: Stanislav Mekhanoshin
Date: 2023-11-06T10:35:49-08:00
New Revision: c3851a987be66ffd78cb9b25a6b6f912104099dd
URL: https://github.com/llvm/llvm-project/commit/c3851a987be66ffd78cb9b25a6b6f912104099dd
DIFF: https://github.com/llvm/llvm-project/commit/c3851a987be66ffd78cb9b25a6b6f912104099dd.diff
LOG: [AMDGPU] Remove dead handling of S_SETPC_B64 (#71275)
At the very least there are no tests covering this. Nothing breaks when
I remove it.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
index d73328d67f6078e..cd929c12eac0d4b 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -2774,14 +2774,8 @@ bool SIInstrInfo::isBranchOffsetInRange(unsigned BranchOp,
return isIntN(BranchOffsetBits, BrOffset);
}
-MachineBasicBlock *SIInstrInfo::getBranchDestBlock(
- const MachineInstr &MI) const {
- if (MI.getOpcode() == AMDGPU::S_SETPC_B64) {
- // This would be a
diff icult analysis to perform, but can always be legal so
- // there's no need to analyze it.
- return nullptr;
- }
-
+MachineBasicBlock *
+SIInstrInfo::getBranchDestBlock(const MachineInstr &MI) const {
return MI.getOperand(0).getMBB();
}
More information about the llvm-commits
mailing list