Commit 2ec50bd
authored
JIT: Switch optOptimizeLayout to pre-layout optimization phase (#113224)
Part of #107749. This is part of my broader goal of phasing out fgReorderBlocks entirely, but there are a few transformations we may want to do right before block layout. In particular, I noticed in #113108 (comment) that some regressed benchmarks have loops with unconditional backedges; in the absence of better loop inversion, we might want to run our unconditional-to-conditional branch duplication optimization right before layout to improve branch behavior in loops. We can put such optimizations in this pre-layout phase.1 parent 3f40427 commit 2ec50bd
File tree
5 files changed
+32
-32
lines changed- src/coreclr/jit
5 files changed
+32
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4936 | 4936 | | |
4937 | 4937 | | |
4938 | 4938 | | |
4939 | | - | |
| 4939 | + | |
4940 | 4940 | | |
4941 | | - | |
| 4941 | + | |
4942 | 4942 | | |
4943 | | - | |
| 4943 | + | |
4944 | 4944 | | |
4945 | | - | |
| 4945 | + | |
4946 | 4946 | | |
4947 | 4947 | | |
4948 | 4948 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7006 | 7006 | | |
7007 | 7007 | | |
7008 | 7008 | | |
7009 | | - | |
| 7009 | + | |
7010 | 7010 | | |
7011 | 7011 | | |
7012 | 7012 | | |
7013 | 7013 | | |
7014 | 7014 | | |
7015 | | - | |
| 7015 | + | |
7016 | 7016 | | |
7017 | 7017 | | |
7018 | 7018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2395 | 2395 | | |
2396 | 2396 | | |
2397 | 2397 | | |
2398 | | - | |
| 2398 | + | |
2399 | 2399 | | |
2400 | 2400 | | |
2401 | 2401 | | |
2402 | 2402 | | |
2403 | | - | |
2404 | | - | |
2405 | | - | |
2406 | | - | |
| 2403 | + | |
2407 | 2404 | | |
2408 | | - | |
| 2405 | + | |
2409 | 2406 | | |
2410 | | - | |
2411 | | - | |
2412 | | - | |
| 2407 | + | |
2413 | 2408 | | |
2414 | | - | |
2415 | | - | |
2416 | | - | |
2417 | | - | |
2418 | | - | |
2419 | | - | |
2420 | | - | |
2421 | | - | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
2422 | 2416 | | |
2423 | 2417 | | |
2424 | 2418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | | - | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
38 | 41 | | |
39 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | | - | |
| 46 | + | |
42 | 47 | | |
43 | | - | |
44 | | - | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
0 commit comments