[llvm] 1d44ecb - [AMDGPU] Remove unnecessary untieRegOperand (#107695)

via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 8 00:21:23 PDT 2024


Author: Jay Foad
Date: 2024-09-08T08:21:19+01:00
New Revision: 1d44ecb9daffbc3b1ed78b7c95662a6fea3f90b9

URL: https://github.com/llvm/llvm-project/commit/1d44ecb9daffbc3b1ed78b7c95662a6fea3f90b9
DIFF: https://github.com/llvm/llvm-project/commit/1d44ecb9daffbc3b1ed78b7c95662a6fea3f90b9.diff

LOG: [AMDGPU] Remove unnecessary untieRegOperand (#107695)

As far as I can tell, V_SET_INACTIVE has never had tied operands.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp b/llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
index bc4b1936cb7e38..f9d7ead4ff3ecc 100644
--- a/llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
+++ b/llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
@@ -1534,7 +1534,6 @@ bool SIWholeQuadMode::lowerCopyInstrs() {
       if (MI->getOperand(2).isReg())
         RecomputeReg = MI->getOperand(2).getReg();
       MI->removeOperand(2);
-      MI->untieRegOperand(1);
     } else {
       assert(MI->getNumExplicitOperands() == 2);
     }


        


More information about the llvm-commits mailing list