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

Switch from llvm::StringRef to char* for Toggle name to prevent static initializers #6949

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

chrdavis
Copy link
Member

@chrdavis chrdavis commented Oct 7, 2024

Small change to switch from llvm::StringRef to char* to prevent incurring a large number of static initializers. See dump of static initializers before and after this change from a release build of dxcompiler.dll.

static_initializers_after.txt
static_initializers_before.txt

Fixes #6896

@chrdavis chrdavis requested a review from a team as a code owner October 7, 2024 18:29
Copy link
Contributor

github-actions bot commented Oct 7, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

dxcompiler.dll has duplicate static initializers via DxcOptToggles.h
1 participant