Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower private global variables in functions #2850

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Commits on Nov 28, 2023

  1. 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
    jiaolu committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    f780231 View commit details
    Browse the repository at this point in the history