From 12dcc180caf1f1e416456277f2dcb92fbe260c3d Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Thu, 27 Aug 2026 16:09:44 +0800 Subject: [GlobalISel] Select each instruction once --- backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h') diff --git a/backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h b/backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h index f45b24d..70771bb 100644 --- a/backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h +++ b/backend/include/rcc/CodeGen/GlobalISel/InstructionSelector.h @@ -19,12 +19,6 @@ public: [[nodiscard]] virtual Expected select(MachineInstr &Instruction, MachineFunction &Function, const TargetDescription &Target) const = 0; - // Selection matching is read-only and completes before select() mutates MachineIR. - [[nodiscard]] virtual Expected canSelect(const MachineInstr &, const MachineFunction &, - const TargetDescription &) const { - return {}; - } - [[nodiscard]] virtual Expected constrainSelectedInstruction(MachineInstr &, MachineFunction &, const TargetDescription &) const { return {}; -- cgit v1.2.3