Commit b4e7bf1
[TLX][AMD] isFedByTDM: switch to pop_back_val worklist idiom
Index-iterate-while-inserting on a SetVector works (Value::getUsers
snapshots Operation-level iterators independent of SetVector storage),
but it's a non-obvious pattern. Switch to the more idiomatic
`pop_back_val` form which makes the value lifetime explicit (no
reference into possibly-reallocated storage). DFS instead of BFS
order is benign here — the function is a short-circuiting any-exists
query over a tree-shaped memdesc graph.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 88f8f7d commit b4e7bf1
1 file changed
Lines changed: 3 additions & 2 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| |||
0 commit comments