mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-12 09:28:27 +01:00
constant_propagation_pass: Prepare for IR matchers
This commit is contained in:
parent
0d7476d3ec
commit
4573511fe3
7 changed files with 203 additions and 73 deletions
|
|
@ -30,7 +30,7 @@ void IdentityRemovalPass(IR::Block& block) {
|
|||
}
|
||||
}
|
||||
|
||||
if (inst.GetOpcode() == IR::Opcode::Identity) {
|
||||
if (inst.GetOpcode() == IR::Opcode::Identity || inst.GetOpcode() == IR::Opcode::Void) {
|
||||
iter = block.Instructions().erase(inst);
|
||||
to_invalidate.push_back(&inst);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue