AMDGPU: Initialize WavefrontSize from TD files
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 23 Oct 2017 23:02:39 +0000 (23:02 +0000)
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Mon, 23 Oct 2017 23:02:39 +0000 (23:02 +0000)
Differential Revision: https://reviews.llvm.org/D39205

llvm-svn: 316389

llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
llvm/lib/Target/AMDGPU/Processors.td

index 06ebff7..86431fe 100644 (file)
@@ -96,7 +96,7 @@ AMDGPUSubtarget::AMDGPUSubtarget(const Triple &TT, StringRef GPU, StringRef FS,
     TargetTriple(TT),
     Gen(TT.getArch() == Triple::amdgcn ? SOUTHERN_ISLANDS : R600),
     IsaVersion(ISAVersion0_0_0),
-    WavefrontSize(64),
+    WavefrontSize(0),
     LocalMemorySize(0),
     LDSBankCount(0),
     MaxPrivateElementSize(0),
index 1f8f5a7..c00383a 100644 (file)
@@ -13,7 +13,7 @@ class Proc<string Name, ProcessorItineraries itin, list<SubtargetFeature> Featur
 // The code produced for "generic" is only useful for tests and cannot
 // reasonably be expected to execute on any particular target.
 def : ProcessorModel<"generic", NoSchedModel, [
-  FeatureGCN
+  FeatureGCN, FeatureWavefrontSize64
 ]>;
 
 //===----------------------------------------------------------------------===//