-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add CPU lambda capture specialization #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, moving to the right direction. I left some early comments.
f27f717
to
d5a9859
Compare
9bfce7c
to
2308fbe
Compare
int Slot = CI->getZExtValue(); | ||
for (auto Arg : RC) { | ||
if (Arg.Slot == Slot) { | ||
LoadInst *LI = dyn_cast<LoadInst>(*(User->users().begin())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We assume that there is a single Load user of the GEP, but there can be multiple. Iterate over all Load instructions users.
d9ab588
to
30a5986
Compare
Rebase ☝️ |
Fixes #18