mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-18 22:42:58 +00:00
basic_block: Move all variables behind a public interface
This commit is contained in:
@@ -25,7 +25,7 @@ void DeadCodeElimination(IR::Block& block) {
|
||||
--iter;
|
||||
if (!iter->HasUses() && !iter->MayHaveSideEffects()) {
|
||||
iter->Invalidate();
|
||||
iter = block.instructions.erase(iter);
|
||||
iter = block.Instructions().erase(iter);
|
||||
}
|
||||
} while (iter != block.begin());
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ void GetSetElimination(IR::Block& block) {
|
||||
const auto do_set = [&block](RegisterInfo& info, IR::Value value, Iterator set_inst) {
|
||||
if (info.set_instruction_present) {
|
||||
info.last_set_instruction->Invalidate();
|
||||
block.instructions.erase(info.last_set_instruction);
|
||||
block.Instructions().erase(info.last_set_instruction);
|
||||
}
|
||||
|
||||
info.register_value = value;
|
||||
|
||||
Reference in New Issue
Block a user