Skip to content

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.

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.

2 participants