aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-01-16 01:33:36 +0000
committerDan Gohman <gohman@apple.com>2009-01-16 01:33:36 +0000
commit2836c283bb1c14baa50994f60769d665da608ad7 (patch)
treef6cad74308a8230fa81c059574a33c8b36cde05a /include
parent153745cc1f82fdfc66b5e68c9146d3339cbebf73 (diff)
downloadexternal_llvm-2836c283bb1c14baa50994f60769d665da608ad7.zip
external_llvm-2836c283bb1c14baa50994f60769d665da608ad7.tar.gz
external_llvm-2836c283bb1c14baa50994f60769d665da608ad7.tar.bz2
Initial hazard recognizer support in post-pass scheduling. This includes
a new toy hazard recognizier heuristic which attempts to direct the scheduler to avoid clumping large groups of loads or stores too densely. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/ScheduleHazardRecognizer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/ScheduleHazardRecognizer.h b/include/llvm/CodeGen/ScheduleHazardRecognizer.h
index 5cf45f7..369882d 100644
--- a/include/llvm/CodeGen/ScheduleHazardRecognizer.h
+++ b/include/llvm/CodeGen/ScheduleHazardRecognizer.h
@@ -55,7 +55,10 @@ public:
/// EmitNoop - This callback is invoked when a noop was added to the
/// instruction stream.
- virtual void EmitNoop() {}
+ virtual void EmitNoop() {
+ // Default implementation: count it as a cycle.
+ AdvanceCycle();
+ }
};
}