-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Loop vectorizer not working with LLVM 3.7? #13106
Comments
cc @ArchRobison for |
I can replicate the problem. I'll take a look. |
Something is very wrong with the target machine identification. With
Though when I compile other code, I see 64-bit instructions being used. I'll poke around some more. |
Possibly related ? |
@ArchRobison Any update? I've tried to set
Is there any other compile options I need to set for this? |
I'm likely not going to be able to look at it further until next week, owing to a C++ committee deadline on Friday for proposals. So I encourage you to look into it. Counter-intuitively, to get the "-debug-only" functionality, LLVM has to be built with assertions enabled. Add |
Thanks. The issue does seem to be the register width since However, it doesn't seems to be just this. With
I'll try to poke around but I'm not sure if I can find the issue. |
I'm back on this. Here's what I suspect is the proximate cause in
Evidently |
Fix issue #13106 by adding TargetTransformInfoWrapperPass to pass list.
This may be a known issue, but I can't get anything to vectorize with LLVM 3.7, e.g. there are no vector instructions in:
Version is:
Of course this works properly with LLVM 3.3.
The text was updated successfully, but these errors were encountered: