-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lower private global variables in functions
Usually the functions are inlined into one entry functions before the SpirvLowerGlobal Pass, However in one case, llpc-raytracing-mode=continuations, the module does not inline library functions to entry function. the private global variables are used in multi functions. These private global variables are coming from gpurt hlsl module, usually are enum values hence, these global variables are loaded, but not stored. So we are probably safe lower these variables in there used functions. wer
- Loading branch information
Showing
2 changed files
with
36 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters