forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JIT: extend redundant branch opt to catch partially redundant cases
If the current relop has PHI inputs, see if any of those inputs would produce the same relop VN as a dominating compare; if so the current relop is partially redundant, and we may be able to optimize some of the paths through the relop block via jump threading. Addresses cases like the one seen in dotnet#48115, though that particular case is not optimized as the current relop block has a side effect.
- Loading branch information
1 parent
6d23851
commit 647d10b
Showing
1 changed file
with
132 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters