KhronosGroup / KhronosGroup/SPIRV-Tools

Reduction pass idea: replace expression with sub-expression

Open
#2,114 0 comments 0 reactions 1 assignee Claimed by @kuhar View on GitHub
component:reducer
Dominant language
C++
Stars
1.4k
Forks
709
Avg merge
1d 22h
Merged PRs (30d)
28

Description

Suggested by @alan-baker in https://github.com/KhronosGroup/SPIRV-Tools/pull/2099:

"For each result id, iterate through its users. If the user's type matches the candidate type and the user is not an OpPhi then replace that whole instruction with the candidate (either replacing all uses carefully or by inserting an OpCopyObject). This would effectively replace an expression with a subexpression."

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.