Skip to content

Commit

Permalink
keep looking unless there is no path
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyAyersMS committed Aug 3, 2022
1 parent d1c9af3 commit 9e5e422
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/coreclr/jit/redundantbranchopts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ bool Compiler::optRedundantBranch(BasicBlock* const block)
relopValue = relopIsFalse ? 0 : 1;
break;
}
else
else if (!falseReaches && !trueReaches)
{
// No apparent path from the dominating BB.
//
Expand All @@ -572,8 +572,15 @@ bool Compiler::optRedundantBranch(BasicBlock* const block)
//
// No point in looking further up the tree.
//
JITDUMP("inference failed -- no apparent path, will stop looking\n");
break;
}
else
{
// Keep looking up the dom tree
//
JITDUMP("inference failed -- will keep looking higher\n");
}
}
}
}
Expand Down

0 comments on commit 9e5e422

Please sign in to comment.