[llvm] ccaf6da - [AMDGPU] Initialize a couple more Subtarget fields

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 08:36:28 PDT 2022


Author: Jay Foad
Date: 2022-04-13T16:36:10+01:00
New Revision: ccaf6dabcc41277ce38f8bbd9dd52ada9b014504

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

LOG: [AMDGPU] Initialize a couple more Subtarget fields

This is just for consistency. The fields are never actually used
so it is NFC.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/GCNSubtarget.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/GCNSubtarget.h b/llvm/lib/Target/AMDGPU/GCNSubtarget.h
index 633c1996b7955..7b4e445dfb525 100644
--- a/llvm/lib/Target/AMDGPU/GCNSubtarget.h
+++ b/llvm/lib/Target/AMDGPU/GCNSubtarget.h
@@ -96,8 +96,8 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
 
   // Subtarget statically properties set by tablegen
   bool FP64 = false;
-  bool FMA;
-  bool MIMG_R128;
+  bool FMA = false;
+  bool MIMG_R128 = false;
   bool CIInsts = false;
   bool GFX8Insts = false;
   bool GFX9Insts = false;


        


More information about the llvm-commits mailing list