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

Run ACCEPT passes in isolation rather than with -O1 #22

Open
sampsyo opened this issue Jul 14, 2014 · 0 comments
Open

Run ACCEPT passes in isolation rather than with -O1 #22

sampsyo opened this issue Jul 14, 2014 · 0 comments

Comments

@sampsyo
Copy link
Member

sampsyo commented Jul 14, 2014

Running the ACCEPT passes currently requires invoking opt or whatever with the -O1 optimization level, which wastes time since we don't need all those other optimizations at this point. It should instead be possible to run ACCEPT optimizations in isolation.

However, we can't do this now since it seems to be impossible to cleanly require an analysis pass from a FunctionPass. That is, using addRequired<>() from the getAnalysisUsage method in a FunctionPass leads to an assertion failure along the lines of "Unable to schedule…". As far as I can tell this is by design. It may be solved in later LLVM versions, which have recently undergone a complete refactor of the pass manager system. Or we could move to ModulePasses.

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

No branches or pull requests

1 participant