Skip to content

Commit 2be251f

Browse files
committed
[AMDGPU] Simplify expandPostRAPseudo for SI_PC_ADD_REL_OFFSET. NFC.
1 parent 57384ae commit 2be251f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,11 +2400,10 @@ bool SIInstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
24002400
.addReg(RegLo)
24012401
.add(MI.getOperand(1)));
24022402

2403-
MachineInstrBuilder MIB = BuildMI(MF, DL, get(AMDGPU::S_ADDC_U32), RegHi)
2404-
.addReg(RegHi);
2405-
MIB.add(MI.getOperand(2));
2403+
Bundler.append(BuildMI(MF, DL, get(AMDGPU::S_ADDC_U32), RegHi)
2404+
.addReg(RegHi)
2405+
.add(MI.getOperand(2)));
24062406

2407-
Bundler.append(MIB);
24082407
finalizeBundle(MBB, Bundler.begin());
24092408

24102409
MI.eraseFromParent();

0 commit comments

Comments
 (0)