From 6c7cecc81a4c7e06e26027e21edd2cfd95a37a0b Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sun, 9 Aug 2026 00:27:27 +0800 Subject: [CodeGen] Implement machine liveness analysis --- backend/unittests/MIR/MIRDocumentTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/unittests/MIR/MIRDocumentTest.cpp') diff --git a/backend/unittests/MIR/MIRDocumentTest.cpp b/backend/unittests/MIR/MIRDocumentTest.cpp index 7ea82c1..1117bf1 100644 --- a/backend/unittests/MIR/MIRDocumentTest.cpp +++ b/backend/unittests/MIR/MIRDocumentTest.cpp @@ -278,7 +278,7 @@ private: rcc::MachineOperand::Kind::GlobalSymbol, rcc::MachineOperand::Kind::ExternalSymbol, }; - Global.Operands.push_back(std::move(GlobalOperand)); + Global.Operands.push_back(GlobalOperand); Global.Flags.set(rcc::InstructionFlag::ProducesCode); std::vector Descriptors; @@ -372,6 +372,7 @@ machineMetadataNodes: - '!10 = distinct !{!0, !"machine", null}' body: | bb.0.entry (%ir-block.entry): + liveins: $g0 %7:gpr64 = TEST_LOAD $g0 :: (load syncscope("agent") acquire 8 from %ir.slot, align 8) TEST_GLOBAL @ordinary TEST_BRANCH %bb.0.entry -- cgit v1.2.3