forked from AbleOS/holey-bytes
removing wrong graph query in a peephole
This commit is contained in:
parent
2718ef8523
commit
be6d0d3f18
|
@ -1188,8 +1188,11 @@ impl Nodes {
|
||||||
return Some(prev_store);
|
return Some(prev_store);
|
||||||
}
|
}
|
||||||
|
|
||||||
if value != VOID
|
if let Some(&load) =
|
||||||
&& self[target].inputs.len() == 4
|
self[target].outputs.iter().find(|&&n| self[n].kind == Kind::Load)
|
||||||
|
{
|
||||||
|
self[load].peep_triggers.push(target);
|
||||||
|
} else if value != VOID
|
||||||
&& self[value].kind != Kind::Load
|
&& self[value].kind != Kind::Load
|
||||||
&& self[store].kind == Kind::Stre
|
&& self[store].kind == Kind::Stre
|
||||||
&& self[store].inputs[2] == region
|
&& self[store].inputs[2] == region
|
||||||
|
|
Loading…
Reference in a new issue