From b7cb5381e520a25e8f0f465903d8eea1972761c2 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 27 Aug 2026 15:53:10 +0800 Subject: [CodeGen] Run machine optimizations once --- backend/include/rcc/CodeGen/MachineCombiner.h | 3 ++- backend/include/rcc/CodeGen/MachineCopyPropagation.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'backend/include') diff --git a/backend/include/rcc/CodeGen/MachineCombiner.h b/backend/include/rcc/CodeGen/MachineCombiner.h index 42ca301..d9df1d1 100644 --- a/backend/include/rcc/CodeGen/MachineCombiner.h +++ b/backend/include/rcc/CodeGen/MachineCombiner.h @@ -29,7 +29,8 @@ public: private: [[nodiscard]] Expected runImplementation(MachineFunction &Function, const TargetDescription &Target, - MachineActionReplay &Actions) const; + MachineFunctionAnalysisManager + &Analyses) const; const TargetMachineCombinerInfo *Info; MachineCombinerOptions Options; diff --git a/backend/include/rcc/CodeGen/MachineCopyPropagation.h b/backend/include/rcc/CodeGen/MachineCopyPropagation.h index 59a3a77..e689632 100644 --- a/backend/include/rcc/CodeGen/MachineCopyPropagation.h +++ b/backend/include/rcc/CodeGen/MachineCopyPropagation.h @@ -30,7 +30,8 @@ public: private: [[nodiscard]] Expected runImplementation(MachineFunction &Function, const TargetDescription &Target, - MachineActionReplay &Actions) const; + MachineFunctionAnalysisManager + &Analyses) const; const TargetInstrInfo *Info; MachineCopyPropagationOptions Options; -- cgit v1.2.3