diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/ScheduleHazardRecognizer.h | 5 |
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(); + } }; } |