mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-09 16:08:04 +01:00
basic_block: Move all variables behind a public interface
This commit is contained in:
parent
1d8432487d
commit
0e12fb6a56
9 changed files with 185 additions and 66 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue