summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-09-04 21:00:02 +0000
committerAndrew Trick <atrick@apple.com>2013-09-04 21:00:02 +0000
commit40b52bb8f2b4f63f6d99e347af0c48945f9cb4d2 (patch)
treeb8af484d8cbc0cde59a2f151d9964c3fbf6453a8 /include
parent42ebb3ad41813af292cfa681c1fe2aadd1008721 (diff)
downloadllvm-40b52bb8f2b4f63f6d99e347af0c48945f9cb4d2.tar.gz
llvm-40b52bb8f2b4f63f6d99e347af0c48945f9cb4d2.tar.bz2
llvm-40b52bb8f2b4f63f6d99e347af0c48945f9cb4d2.tar.xz
mi-sched: bypass heuristic checks when regpressure tracking is disabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineScheduler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineScheduler.h b/include/llvm/CodeGen/MachineScheduler.h
index e36ffdd8dd..4bee2171bd 100644
--- a/include/llvm/CodeGen/MachineScheduler.h
+++ b/include/llvm/CodeGen/MachineScheduler.h
@@ -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.