mi-sched: bypass heuristic checks when regpressure tracking is disabled.
[oota-llvm.git] / include / llvm / CodeGen / MachineScheduler.h
index e36ffdd8dd0205ec3f1e89e51fa44b101d2bc461..4bee2171bd1dacb73c412b33815806270d900d61 100644 (file)
@@ -271,6 +271,9 @@ public:
 
   virtual ~ScheduleDAGMI();
 
+  /// Return true if register pressure tracking is enabled.
+  bool shouldTrackPressure() const { return ShouldTrackPressure; }
+
   /// Add a postprocessing step to the DAG builder.
   /// Mutations are applied in the order that they are added after normal DAG
   /// building and before MachineSchedStrategy initialization.