-
Notifications
You must be signed in to change notification settings - Fork 28
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
How to check fused vector function? #33
Comments
I would guess that because you use |
It seems like this:
still fails. Am I missing something? |
Use the Core :-) It should show you what’s happening. Likely GHC has combined Have you tried the following?
These tests work better (and are more realistic!) if you don't use constant top-level values, but rather write functions. But in the end it depends on what you actually want to test for. Also see haskell/vector#229 |
Unfortunately Core is a bit hard on the eye :/ A more practical example of what I'm actually trying to test is: I have a |
So far I've been using |
Hi!
I'm having trouble with fused function, notably here:
mul
fails the test, althoughmulSub
is fused. What would be a way around this issue?The text was updated successfully, but these errors were encountered: