mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
backend/arm64/reg_alloc: Handle immediates in DefineAsExisting
This commit is contained in:
parent
277f7a76e9
commit
a5f3164c38
@ -177,6 +177,11 @@ void RegAlloc::PrepareForCall(IR::Inst* result, std::optional<Argument::copyable
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RegAlloc::DefineAsExisting(IR::Inst* inst, Argument& arg) {
|
void RegAlloc::DefineAsExisting(IR::Inst* inst, Argument& arg) {
|
||||||
|
if (arg.value.IsImmediate()) {
|
||||||
|
inst->ReplaceUsesWith(arg.value);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ASSERT(!ValueLocation(inst));
|
ASSERT(!ValueLocation(inst));
|
||||||
auto& info = ValueInfo(arg.value.GetInst());
|
auto& info = ValueInfo(arg.value.GetInst());
|
||||||
info.values.emplace_back(inst);
|
info.values.emplace_back(inst);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user