diff options
author | David Blaikie <dblaikie@gmail.com> | 2020-07-06 18:01:57 -0700 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2020-07-06 18:05:32 -0700 |
commit | 7a99aab8692c58558b62e9a66120886b8a70fab8 (patch) | |
tree | acf1ccfa9eb6d4132125f408dbfc0b13994ab8c0 /llvm | |
parent | 10c82eecbcb7d9f000f6640b26c854843a78f091 (diff) | |
download | llvm-7a99aab8692c58558b62e9a66120886b8a70fab8.zip llvm-7a99aab8692c58558b62e9a66120886b8a70fab8.tar.gz llvm-7a99aab8692c58558b62e9a66120886b8a70fab8.tar.bz2 |
[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
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/CodeGen/ModuloSchedule.h | 3 |
1 files changed, 1 insertions, 2 deletions
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. |