diff options
author | Anton Sidorenko <anton.sidorenko@syntacore.com> | 2023-02-14 13:30:13 +0300 |
---|---|---|
committer | Anton Sidorenko <anton.sidorenko@syntacore.com> | 2023-02-14 16:38:47 +0300 |
commit | 77bd15ae2fa381e5c017543853d72a3f0cc7ced7 (patch) | |
tree | 755d6488d21170e568806d843efa388bdd02250d /llvm/lib/CodeGen/MachineCombiner.cpp | |
parent | 147f476e851de5b6b7f405d4ae835b4a34c2e359 (diff) | |
download | llvm-77bd15ae2fa381e5c017543853d72a3f0cc7ced7.zip llvm-77bd15ae2fa381e5c017543853d72a3f0cc7ced7.tar.gz llvm-77bd15ae2fa381e5c017543853d72a3f0cc7ced7.tar.bz2 |
[MachineTraceMetrics][NFC] Move Strategy enum out of the class
Make forward declaration possible to reduce amount of dependencies and reduce
re-compilation burden caused by further patches.
Reviewed By: spatel
Differential Revision: https://reviews.llvm.org/D140539
Diffstat (limited to 'llvm/lib/CodeGen/MachineCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineCombiner.cpp b/llvm/lib/CodeGen/MachineCombiner.cpp index 974d570..485ec66 100644 --- a/llvm/lib/CodeGen/MachineCombiner.cpp +++ b/llvm/lib/CodeGen/MachineCombiner.cpp @@ -575,7 +575,7 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) { // Check if the block is in a loop. const MachineLoop *ML = MLI->getLoopFor(MBB); if (!MinInstr) - MinInstr = Traces->getEnsemble(MachineTraceMetrics::TS_MinInstrCount); + MinInstr = Traces->getEnsemble(MachineTraceStrategy::TS_MinInstrCount); SparseSet<LiveRegUnit> RegUnits; RegUnits.setUniverse(TRI->getNumRegUnits()); |