Skip to content

Fix missing optimization in CodeSinkingPass#6703

Open
diddily wants to merge 1 commit into
KhronosGroup:mainfrom
diddily:main
Open

Fix missing optimization in CodeSinkingPass#6703
diddily wants to merge 1 commit into
KhronosGroup:mainfrom
diddily:main

Conversation

@diddily
Copy link
Copy Markdown

@diddily diddily commented May 18, 2026

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_.

Set checked_for_uniform_sync_ after the first scan for uniform memory sync instructions which is called for most instructions. This makes the optimization pass O(N) instead of O(N^2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant