Skip to content

Commit c3851a9

Browse files
authored
[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.
1 parent 65fedb4 commit c3851a9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,14 +2774,8 @@ bool SIInstrInfo::isBranchOffsetInRange(unsigned BranchOp,
27742774
return isIntN(BranchOffsetBits, BrOffset);
27752775
}
27762776

2777-
MachineBasicBlock *SIInstrInfo::getBranchDestBlock(
2778-
const MachineInstr &MI) const {
2779-
if (MI.getOpcode() == AMDGPU::S_SETPC_B64) {
2780-
// This would be a difficult analysis to perform, but can always be legal so
2781-
// there's no need to analyze it.
2782-
return nullptr;
2783-
}
2784-
2777+
MachineBasicBlock *
2778+
SIInstrInfo::getBranchDestBlock(const MachineInstr &MI) const {
27852779
return MI.getOperand(0).getMBB();
27862780
}
27872781

0 commit comments

Comments
 (0)