From 50867895fbfd5eb5256e246bc021c84f8fce5be8 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Thu, 8 Apr 2021 14:32:36 +0100 Subject: [PATCH] [AMDGPU] SIFoldOperands: remove an unneeded make_early_inc_range. NFC. --- lib/Target/AMDGPU/SIFoldOperands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/AMDGPU/SIFoldOperands.cpp b/lib/Target/AMDGPU/SIFoldOperands.cpp index 6de34dcf3a2..7635f52d78d 100644 --- a/lib/Target/AMDGPU/SIFoldOperands.cpp +++ b/lib/Target/AMDGPU/SIFoldOperands.cpp @@ -695,7 +695,7 @@ void SIFoldOperands::foldOperand( if (!DestReg.isPhysical()) { if (TRI->isSGPRClass(SrcRC) && TRI->hasVectorRegisters(DestRC)) { SmallVector CopyUses; - for (auto &Use : make_early_inc_range(MRI->use_nodbg_operands(DestReg))) { + for (auto &Use : MRI->use_nodbg_operands(DestReg)) { // There's no point trying to fold into an implicit operand. if (Use.isImplicit()) continue;