[llvm] 3bf21ba - [AMDGPU] Use MachineBasicBlock::instrs (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 28 10:47:16 PST 2024
Author: Kazu Hirata
Date: 2024-01-28T10:47:07-08:00
New Revision: 3bf21ba597d00253c6ef55bb0b499711dd778d84
URL: https://github.com/llvm/llvm-project/commit/3bf21ba597d00253c6ef55bb0b499711dd778d84
DIFF: https://github.com/llvm/llvm-project/commit/3bf21ba597d00253c6ef55bb0b499711dd778d84.diff
LOG: [AMDGPU] Use MachineBasicBlock::instrs (NFC)
Added:
Modified:
llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp b/llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
index 87242a4740c8e9b..82da53d0c0ebdd4 100644
--- a/llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
+++ b/llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
@@ -397,8 +397,7 @@ bool SIPreEmitPeephole::runOnMachineFunction(MachineFunction &MF) {
// and limit the distance to 20 instructions for compile time purposes.
// Note: this needs to work on bundles as S_SET_GPR_IDX* instructions
// may be bundled with the instructions they modify.
- for (auto &MI :
- make_early_inc_range(make_range(MBB.instr_begin(), MBB.instr_end()))) {
+ for (auto &MI : make_early_inc_range(MBB.instrs())) {
if (Count == Threshold)
SetGPRMI = nullptr;
else
More information about the llvm-commits
mailing list