Skip to content

Commit 906c9e9

Browse files
authored
[AMDGPU] Remove misplaced assert. (#154187)
The assert that RegScavenger required for long branching is now placed below the code to use s_add_pc64, where it is actually used.
1 parent 79be94c commit 906c9e9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2905,7 +2905,6 @@ void SIInstrInfo::insertIndirectBranch(MachineBasicBlock &MBB,
29052905
MachineBasicBlock &RestoreBB,
29062906
const DebugLoc &DL, int64_t BrOffset,
29072907
RegScavenger *RS) const {
2908-
assert(RS && "RegScavenger required for long branching");
29092908
assert(MBB.empty() &&
29102909
"new block should be inserted for expanding unconditional branch");
29112910
assert(MBB.pred_size() == 1);

0 commit comments

Comments
 (0)