-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Argument Promotion needs to be smarter #1259
Comments
assigned to @jdoerfert |
t'would be nice. What sort of program does this occur in? -Chris |
This causes an extra load (and global address resolve) in every recursive call |
I'll take a stab at this. |
this patch, while being utterly unsafe, does catch most of the cases I've seen,
|
The recursion issue is fixed here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060828/037393.html Your actual testcase won't work just yet. ArgumentPromotion still needs to get a bit smarter about what |
This is not fixed. The previous patch had to be reverted, and the solution seems more complicated that I |
I'm not going to have the time to do this any time soon, so I'm marking this unassigned. |
I'll look into this. |
Modernized testcase:
|
I am looking at this, I was able to get it working in a hacky way. It passes the testcase added, but fails two different testcase. Can someone please take a look at it, and help me improve the code ?
|
@vedantparanjape-amd You should open a PR. You'll get more feedback this way. |
Sure, will do so. |
@Endilll @jdoerfert @arsenm I have added a PR now. |
ping! |
You should wait for at least a week before pinging people. And it's better done in PR |
Okay, will keep in mind, cheers! |
This issue is now fixed, closing it. (happy to close the 2nd oldest issue on LLVM) PR: #78735 |
Extended Description
in the case below, argument promotion should promote the int* x to be passed by
value.
The text was updated successfully, but these errors were encountered: