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

[NewPM] Add disable-passes command line option #76714

Closed
wants to merge 1 commit into from

Conversation

paperchalice
Copy link
Contributor

Noticed there are some command line options to disable passes in TargetPassConfig.cpp, this patch adds a unified option to disable them. This option may be rarely used in tools like opt, but llc could benefit from it.

Noticed there are some command line options to disable passes in `TargetPassConfig.cpp`, this patch adds a unified option to disable them.
@paperchalice
Copy link
Contributor Author

There should be another option like enable-passes here, which should support parameters passing, looking for solutions currently.

@arsenm
Copy link
Contributor

arsenm commented Jan 2, 2024

The arbitrary flags in TargetPassConfig are for passes and collections of passes which can be disabled. There are lots of passes which can't meaningfully be disabled. Exposing an option to disable arbitrary passes increases the bug surface

@paperchalice
Copy link
Contributor Author

Close for now, will reopen if find a better solution in future.

@paperchalice paperchalice deleted the disable-passes branch April 4, 2024 09:54
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.

None yet

2 participants