mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 23:00:45 -04:00
[decompiler] Add tests and fixes for vector-h and math (#333)
* before messing with ssa stuff * fix ash * bounding box
This commit is contained in:
@@ -1123,6 +1123,17 @@ Form* try_sc_as_ash(FormPool& pool, Function& f, const ShortCircuit* vtx) {
|
||||
// fix up reg info
|
||||
f.ir2.env.disable_use(delay->src().get_arg(0).var());
|
||||
|
||||
// fix up the other ones:
|
||||
f.ir2.env.disable_use(branch->op()->condition().src(0).var()); // bgezl X, L
|
||||
auto dsubu_var = dynamic_cast<SimpleExpressionElement*>(dsubu_set->src()->try_as_single_element())
|
||||
->expr()
|
||||
.get_arg(0)
|
||||
.var();
|
||||
f.ir2.env.disable_use(dsubu_var);
|
||||
|
||||
// and the def too
|
||||
f.ir2.env.disable_def(dsrav_set->dst());
|
||||
|
||||
return b0_c_ptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user