Commit df03257
authored
Fix missing optimization in CodeSinkingPass (KhronosGroup#6703)
Set `checked_for_uniform_sync_` after the first scan for uniform memory
sync instructions in `HasUniformMemorySync`. Since this function is
called for most instructions, this change makes the optimization pass
O(N) instead of O(N^2). This drastically reduces how long it takes in
complex binaries and fulfills what I assume was the original intent of
`checked_for_uniform_sync_`.1 parent 9654570 commit df03257
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| |||
0 commit comments