This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Commit 1e9a45e
committed
Don't hoist IConHandle statics above cctors
These constants appear loop invariant, hence so do their dereferences
when a loop has no memory side-effects. Add flag `GTF_ICON_INITCLASS`
similar to `GTF_FLD_INITCLASS`/`GTF_CLS_VAR_INITCLASS`, and use it to
prevent hoisting such references without also hoisting their static
init helper calls.
Resolves #11689
[cherry-pick of 66e5e7f, with trivial conflict resolved]1 parent 1b2a008 commit 1e9a45e
File tree
6 files changed
+136
-8
lines changed- src/jit
- tests/src/JIT/Regression/JitBlue/GitHub_11689
6 files changed
+136
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1010 | 1018 | | |
1011 | 1019 | | |
1012 | 1020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6093 | 6093 | | |
6094 | 6094 | | |
6095 | 6095 | | |
6096 | | - | |
| 6096 | + | |
| 6097 | + | |
| 6098 | + | |
| 6099 | + | |
6097 | 6100 | | |
6098 | | - | |
| 6101 | + | |
6099 | 6102 | | |
6100 | | - | |
6101 | | - | |
6102 | | - | |
6103 | 6103 | | |
| 6104 | + | |
| 6105 | + | |
6104 | 6106 | | |
6105 | 6107 | | |
6106 | 6108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6560 | 6560 | | |
6561 | 6561 | | |
6562 | 6562 | | |
| 6563 | + | |
| 6564 | + | |
| 6565 | + | |
| 6566 | + | |
| 6567 | + | |
| 6568 | + | |
| 6569 | + | |
6563 | 6570 | | |
6564 | 6571 | | |
6565 | 6572 | | |
| |||
6614 | 6621 | | |
6615 | 6622 | | |
6616 | 6623 | | |
| 6624 | + | |
| 6625 | + | |
| 6626 | + | |
| 6627 | + | |
| 6628 | + | |
| 6629 | + | |
6617 | 6630 | | |
6618 | 6631 | | |
6619 | 6632 | | |
| |||
6645 | 6658 | | |
6646 | 6659 | | |
6647 | 6660 | | |
| 6661 | + | |
| 6662 | + | |
| 6663 | + | |
| 6664 | + | |
| 6665 | + | |
| 6666 | + | |
| 6667 | + | |
6648 | 6668 | | |
6649 | 6669 | | |
6650 | 6670 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6142 | 6142 | | |
6143 | 6143 | | |
6144 | 6144 | | |
6145 | | - | |
6146 | | - | |
6147 | | - | |
| 6145 | + | |
| 6146 | + | |
| 6147 | + | |
| 6148 | + | |
| 6149 | + | |
| 6150 | + | |
| 6151 | + | |
| 6152 | + | |
| 6153 | + | |
6148 | 6154 | | |
6149 | 6155 | | |
6150 | 6156 | | |
| |||
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments