Skip to content

Commit 3bf21ba

Browse files
[AMDGPU] Use MachineBasicBlock::instrs (NFC)
1 parent 26648da commit 3bf21ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,7 @@ bool SIPreEmitPeephole::runOnMachineFunction(MachineFunction &MF) {
397397
// and limit the distance to 20 instructions for compile time purposes.
398398
// Note: this needs to work on bundles as S_SET_GPR_IDX* instructions
399399
// may be bundled with the instructions they modify.
400-
for (auto &MI :
401-
make_early_inc_range(make_range(MBB.instr_begin(), MBB.instr_end()))) {
400+
for (auto &MI : make_early_inc_range(MBB.instrs())) {
402401
if (Count == Threshold)
403402
SetGPRMI = nullptr;
404403
else

0 commit comments

Comments
 (0)