[llvm] 2724b57 - [AMDGPU] SIFoldOperands: remove an unneeded make_early_inc_range. NFC.

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 8 06:52:16 PDT 2021


Author: Jay Foad
Date: 2021-04-08T14:32:36+01:00
New Revision: 2724b57ecdbba92435f258d0ec610780f6d60d84

URL: https://github.com/llvm/llvm-project/commit/2724b57ecdbba92435f258d0ec610780f6d60d84
DIFF: https://github.com/llvm/llvm-project/commit/2724b57ecdbba92435f258d0ec610780f6d60d84.diff

LOG: [AMDGPU] SIFoldOperands: remove an unneeded make_early_inc_range. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SIFoldOperands.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
index 6de34dcf3a27..7635f52d78db 100644
--- a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
+++ b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
@@ -695,7 +695,7 @@ void SIFoldOperands::foldOperand(
     if (!DestReg.isPhysical()) {
       if (TRI->isSGPRClass(SrcRC) && TRI->hasVectorRegisters(DestRC)) {
         SmallVector<FoldCandidate, 4> 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;


        


More information about the llvm-commits mailing list