diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-09 00:27:27 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-09 00:27:27 +0800 |
| commit | 6c7cecc81a4c7e06e26027e21edd2cfd95a37a0b (patch) | |
| tree | 2e39843b9de9c6534c67a768d923788af6292451 /backend/unittests/MIR/MIRDocumentTest.cpp | |
| parent | 77884c967d1cbc48afcbaef7e5a35adcb3c5da1b (diff) | |
| download | rcc-project-6c7cecc81a4c7e06e26027e21edd2cfd95a37a0b.tar.gz rcc-project-6c7cecc81a4c7e06e26027e21edd2cfd95a37a0b.tar.xz | |
[CodeGen] Implement machine liveness analysis
Diffstat (limited to 'backend/unittests/MIR/MIRDocumentTest.cpp')
| -rw-r--r-- | backend/unittests/MIR/MIRDocumentTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<rcc::InstructionDescriptor> 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 |
