From 7d763c8b0ae6eee5f015fa82c744bff4c7ec8c8b Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sat, 15 Aug 2026 03:11:22 +0800 Subject: [GlobalISel] Preserve worklists when moving CSE instructions --- backend/include/rcc/CodeGen/MachineBasicBlock.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend/include/rcc/CodeGen') diff --git a/backend/include/rcc/CodeGen/MachineBasicBlock.h b/backend/include/rcc/CodeGen/MachineBasicBlock.h index da538db..10cc438 100644 --- a/backend/include/rcc/CodeGen/MachineBasicBlock.h +++ b/backend/include/rcc/CodeGen/MachineBasicBlock.h @@ -99,6 +99,9 @@ public: MachineInstr &Instruction); [[nodiscard]] Expected insertInstructionAfter(MachineInstr &Position, MachineInstr &Instruction); + // Reorder linked instructions without reporting removal or insertion to the delegate. + [[nodiscard]] Expected spliceInstructionBefore(MachineInstr &Position, + MachineInstr &Instruction); [[nodiscard]] Expected removeInstruction(MachineInstr &Instruction); void clearInstructions() noexcept; -- cgit v1.2.3