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

Need a way to filter out optimized expressions #4

Open
ekmett opened this issue Sep 22, 2015 · 2 comments
Open

Need a way to filter out optimized expressions #4

ekmett opened this issue Sep 22, 2015 · 2 comments

Comments

@ekmett
Copy link
Contributor

ekmett commented Sep 22, 2015

When I optimize code using the suggestions from herbie, I get caught in a catch-22. the optimized expression often contains the original expression as one of its several branches.

Some way to filter these out would be ideal.

The simplest option would be to allow the use of an {-# ANN #-} pragma on a function to tell herbie to ignore it.

Even better would be a way to tell herbie the filtered range of arguments that can reach a sub-expression, so that it can know to avoid supplying better approximations for inputs that are outside of the domain.

@mikeizbicki
Copy link
Owner

Does 1c5f8ae do something similar to what you had in mind?

Even better would be a way to tell herbie the filtered range of arguments that can reach a sub-expression, so that it can know to avoid supplying better approximations for inputs that are outside of the domain.

I agree, but the Herbie progam doesn't currently support this AFAIK.

@ekmett
Copy link
Contributor Author

ekmett commented Sep 22, 2015

Perfect!

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

No branches or pull requests

2 participants