R600/SI: Add load / store machine optimizer pass.
[oota-llvm.git] / lib / Target / R600 / AMDGPUSubtarget.h
index 679797219dc9b2598edb59ffa66066e2d841d52c..55a0c586d72af823d1633c7b7007ad31e6f53533 100644 (file)
@@ -60,6 +60,7 @@ private:
   bool EnableIRStructurizer;
   bool EnablePromoteAlloca;
   bool EnableIfCvt;
+  bool EnableLoadStoreOpt;
   unsigned WavefrontSize;
   bool CFALUBug;
   int LocalMemorySize;
@@ -180,6 +181,10 @@ public:
     return EnableIfCvt;
   }
 
+  bool loadStoreOptEnabled() const {
+    return EnableLoadStoreOpt;
+  }
+
   unsigned getWavefrontSize() const {
     return WavefrontSize;
   }