[llvm] 86734c8 - [NFC][AMDGPU] Remove redundant code in `AMDGPUAsmPrinter.cpp`

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 12:09:05 PST 2024


Author: Shilei Tian
Date: 2024-11-20T15:08:26-05:00
New Revision: 86734c857724b382665c6f1c2244a22edee97f84

URL: https://github.com/llvm/llvm-project/commit/86734c857724b382665c6f1c2244a22edee97f84
DIFF: https://github.com/llvm/llvm-project/commit/86734c857724b382665c6f1c2244a22edee97f84.diff

LOG: [NFC][AMDGPU] Remove redundant code in `AMDGPUAsmPrinter.cpp`

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
index 90ece275412c7c..90c341ac0819cc 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -1594,9 +1594,6 @@ void AMDGPUAsmPrinter::getAmdKernelCode(AMDGPUMCKernelCodeT &Out,
   if (UserSGPRInfo.hasPrivateSegmentSize())
     Out.code_properties |= AMD_CODE_PROPERTY_ENABLE_SGPR_PRIVATE_SEGMENT_SIZE;
 
-  if (UserSGPRInfo.hasDispatchPtr())
-    Out.code_properties |= AMD_CODE_PROPERTY_ENABLE_SGPR_DISPATCH_PTR;
-
   if (STM.isXNACKEnabled())
     Out.code_properties |= AMD_CODE_PROPERTY_IS_XNACK_SUPPORTED;
 


        


More information about the llvm-commits mailing list