Commit 7c2fd23
authored
Fix OptimizeInstructions for general Cmpxchg expected types (#8495)
OptimizeInstructions previously assumed incorrectly that the expected
field of a StructCmpxchg would be a subtype of the accessed field type.
In fact, it can be a supertype as long as it is a subtype of eq (or
shared eq).1 parent 410256a commit 7c2fd23
2 files changed
Lines changed: 180 additions & 69 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2108 | 2108 | | |
2109 | 2109 | | |
2110 | 2110 | | |
2111 | | - | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
2112 | 2118 | | |
2113 | 2119 | | |
2114 | 2120 | | |
| |||
2122 | 2128 | | |
2123 | 2129 | | |
2124 | 2130 | | |
2125 | | - | |
| 2131 | + | |
2126 | 2132 | | |
2127 | 2133 | | |
2128 | 2134 | | |
| |||
0 commit comments