Commit 578644c
JIT: support SSA-aware PHI jump threading (#126812)
Teach redundant branch elimination to keep jump threading through PHI-
based blocks when the PHI uses can be fully accounted for in the block
and its immediate successors. Rewrite the affected successor SSA/VN
uses, keep dominating-block threading conservative, and add focused
regression coverage for the new PHI-based cases.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 33be435 commit 578644c
File tree
5 files changed
+431
-28
lines changed- src
- coreclr/jit
- tests/JIT/opt/RedundantBranch
5 files changed
+431
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7857 | 7857 | | |
7858 | 7858 | | |
7859 | 7859 | | |
7860 | | - | |
7861 | | - | |
7862 | | - | |
7863 | | - | |
7864 | | - | |
7865 | | - | |
7866 | | - | |
7867 | | - | |
| 7860 | + | |
| 7861 | + | |
| 7862 | + | |
| 7863 | + | |
| 7864 | + | |
| 7865 | + | |
| 7866 | + | |
| 7867 | + | |
| 7868 | + | |
| 7869 | + | |
| 7870 | + | |
| 7871 | + | |
| 7872 | + | |
| 7873 | + | |
| 7874 | + | |
| 7875 | + | |
| 7876 | + | |
7868 | 7877 | | |
7869 | 7878 | | |
7870 | 7879 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments