Commit 8ac9368
committed
inference: follow up #54323, override ssaflags with new cycle effects
#54323 ensures that all frames within a cycle have the
same, cycle valid effects. However, `src.ssaflags` is calculated using
partial effects, so when the effects of a `frame` within the cycle are
updated, there would be an inconsistency between `frame.ipo_effects` and
`frame.src.ssaflags`. Due to this inconsistency, #54323
breaks the test cases from #51092, when backported to
v1.11. On the surface this is because #52999 hasn't been
backported to v1.11, but the fundamental issue lies in this
inconsistency between cycle effects and `ssaflags`.
To resolve this issue, this commit traverses `cycle_backedges` to visit
statements involved in the cycle, and updates each `ssaflags` according
to new cycle valid effects if necessary.1 parent ec32170 commit 8ac9368
2 files changed
+56
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
239 | 266 | | |
240 | | - | |
| 267 | + | |
241 | 268 | | |
242 | 269 | | |
243 | 270 | | |
| |||
246 | 273 | | |
247 | 274 | | |
248 | 275 | | |
249 | | - | |
| 276 | + | |
250 | 277 | | |
251 | 278 | | |
252 | | - | |
253 | | - | |
| 279 | + | |
254 | 280 | | |
255 | 281 | | |
256 | 282 | | |
| |||
265 | 291 | | |
266 | 292 | | |
267 | 293 | | |
268 | | - | |
269 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
270 | 310 | | |
271 | 311 | | |
272 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5291 | 5291 | | |
5292 | 5292 | | |
5293 | 5293 | | |
| 5294 | + | |
| 5295 | + | |
| 5296 | + | |
| 5297 | + | |
| 5298 | + | |
| 5299 | + | |
| 5300 | + | |
| 5301 | + | |
| 5302 | + | |
5294 | 5303 | | |
5295 | 5304 | | |
5296 | 5305 | | |
| |||
0 commit comments