diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 20:16:09 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-11 20:16:09 +0800 |
| commit | cd2e88b9618ba7c2f6fcfac901e81f4a302a34c9 (patch) | |
| tree | dffd656415955f1cc7431e790bec6b4e3c7b58ef /backend/unittests/Target/RISCVCallLoweringTest.cpp | |
| parent | d53149886f39884efe3da5cae67653f9f86132d6 (diff) | |
| download | rcc-project-cd2e88b9618ba7c2f6fcfac901e81f4a302a34c9.tar.gz rcc-project-cd2e88b9618ba7c2f6fcfac901e81f4a302a34c9.tar.xz | |
[CodeGen] Remove redundant numeric call-site IDs
Diffstat (limited to 'backend/unittests/Target/RISCVCallLoweringTest.cpp')
| -rw-r--r-- | backend/unittests/Target/RISCVCallLoweringTest.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/backend/unittests/Target/RISCVCallLoweringTest.cpp b/backend/unittests/Target/RISCVCallLoweringTest.cpp index 1eaf146..7284887 100644 --- a/backend/unittests/Target/RISCVCallLoweringTest.cpp +++ b/backend/unittests/Target/RISCVCallLoweringTest.cpp @@ -176,7 +176,6 @@ abiValue(rcc::LLT Type, std::uint32_t OriginalValue, rcc::Register Value = plann Request.Callee = externalTarget(); Request.Arguments = std::move(Arguments); Request.FixedArgumentCount = FixedArgumentCount; - Request.CallSiteID = 17; Request.IsVariadic = IsVariadic; return Request; } @@ -491,14 +490,13 @@ void testOrdinaryAndIndirectEmission(TestContext &Context) { opcode(rcc::riscv::InstructionOpcode::ADJCALLSTACKDOWN) && Instructions[1]->opcode() == rcc::opcode(rcc::GenericOpcode::COPY) && Instructions.back()->opcode() == rcc::opcode(rcc::GenericOpcode::COPY) && - Call != nullptr && Call->operandCount() >= 6 && + Call != nullptr && Call->operandCount() >= 5 && Call->operandAt(0)->kind() == rcc::MachineOperand::Kind::ExternalSymbol && Call->operandAt(0)->targetFlags() == static_cast<std::uint32_t>(rcc::riscv::CallTargetFlag::DirectCall) && - Call->operandAt(1)->kind() == rcc::MachineOperand::Kind::IntegerImmediate && - Call->operandAt(2)->kind() == rcc::MachineOperand::Kind::RegisterMask, + Call->operandAt(1)->kind() == rcc::MachineOperand::Kind::RegisterMask, "ordinary emission must materialize canonical full-value copies, call-frame, " - "target, ID, and RegMask"); + "target, and RegMask"); const rcc::Register StackPointer = rcc::Register::fromPhysical(physical(rcc::riscv::PhysicalRegisterID::X2)); const auto HasStackPointerEffects = [StackPointer](const rcc::MachineInstr *Instruction) { |
