mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 23:00:45 -04:00
[decompiler] Working toward bsp (#717)
* clean up * before int to float stuff * before trying to eliminate the separate read and write maps * partial fix for register issues * add missing include
This commit is contained in:
@@ -538,6 +538,10 @@ bool ControlFlowGraph::is_until_loop(CfgVtx* b1, CfgVtx* b2) {
|
||||
if (!b1 || !b2)
|
||||
return false;
|
||||
|
||||
if (b2->end_branch.asm_branch) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// check next and prev
|
||||
if (b1->next != b2)
|
||||
return false;
|
||||
@@ -790,7 +794,7 @@ bool ControlFlowGraph::find_until1_loop() {
|
||||
bool found = false;
|
||||
|
||||
for_each_top_level_vtx([&](CfgVtx* vtx) {
|
||||
if (vtx->succ_branch == vtx && vtx->succ_ft) {
|
||||
if (vtx->succ_branch == vtx && vtx->succ_ft && !vtx->end_branch.asm_branch) {
|
||||
auto loop = alloc<UntilLoop_single>();
|
||||
loop->block = vtx;
|
||||
loop->pred = vtx->pred;
|
||||
|
||||
Reference in New Issue
Block a user