From 7a99aab8692c58558b62e9a66120886b8a70fab8 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 6 Jul 2020 18:01:57 -0700 Subject: [ModuloSchedule] Devirtualize PeelingModuloScheduleExpander::expand as it's not needed The use case is out of tree code deriving from this class - but without a need to use the base class polymorphically, so skip the virtualization and virtual dtor. Post-commit review from 50ac7ce94f34c5f43b02185ae0c33e150e78b044 --- llvm/include/llvm/CodeGen/ModuloSchedule.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm') diff --git a/llvm/include/llvm/CodeGen/ModuloSchedule.h b/llvm/include/llvm/CodeGen/ModuloSchedule.h index be0108d..1aa2320 100644 --- a/llvm/include/llvm/CodeGen/ModuloSchedule.h +++ b/llvm/include/llvm/CodeGen/ModuloSchedule.h @@ -282,9 +282,8 @@ public: LiveIntervals *LIS) : Schedule(S), MF(MF), ST(MF.getSubtarget()), MRI(MF.getRegInfo()), TII(ST.getInstrInfo()), LIS(LIS) {} - virtual ~PeelingModuloScheduleExpander() {} - virtual void expand(); + void expand(); /// Runs ModuloScheduleExpander and treats it as a golden input to validate /// aspects of the code generated by PeelingModuloScheduleExpander. -- cgit v1.1