Skip to content

Commit 40a6671

Browse files
committed
Fix
1 parent 65e8164 commit 40a6671

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,9 @@ Register SIInstrInfo::insertNE(MachineBasicBlock *MBB,
13151315

13161316
MachineInstr *
13171317
SIInstrInfo::pierceThroughRegSequence(const MachineInstr &MI) const {
1318+
if (MI.getOpcode() != AMDGPU::REG_SEQUENCE)
1319+
return nullptr;
1320+
13181321
const MachineRegisterInfo &MRI = MI.getParent()->getParent()->getRegInfo();
13191322
int64_t SubRegValues[2];
13201323
bool SubRegIsConst[2];

0 commit comments

Comments
 (0)