mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-07 17:46:28 +00:00
IROpt: Port get/set elimination pass to current IR
This commit is contained in:
@@ -87,6 +87,11 @@ CodePtr EmitX64::Emit(const Arm::LocationDescriptor descriptor, Dynarmic::IR::Bl
|
||||
return code_ptr;
|
||||
}
|
||||
|
||||
void EmitX64::EmitIdentity(IR::Block& block, IR::Inst* inst) {
|
||||
// TODO: Possible unnecessary mov here.
|
||||
reg_alloc.UseDefRegister(inst->GetArg(0), inst);
|
||||
}
|
||||
|
||||
void EmitX64::EmitGetRegister(IR::Block&, IR::Inst* inst) {
|
||||
Arm::Reg reg = inst->GetArg(0).GetRegRef();
|
||||
X64Reg result = reg_alloc.DefRegister(inst);
|
||||
|
||||
Reference in New Issue
Block a user