fitzgen opened PR #5113 from avoid-cloning-sigs
to main
:
Unfortunately, this seems to be perf neutral. I think we already got most of the wins we otherwise would have got when we deduplicated IR signatures during lowering.
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
fitzgen requested cfallin for a review on PR #5113.
jameysharp submitted PR review.
jameysharp submitted PR review.
jameysharp created PR review comment:
I haven't looked at the implementation of
uses_special_return
. Why does it need to be guarded to only run when there are some return values?Maybe the answer is just that the old implementation had this guard. But I think the old implementation, using
Iterator::any
, shouldn't have needed this either:any
returnsfalse
on an empty iterator.
jameysharp created PR review comment:
/// If the signature needs to be legalized, then return the struct-return
fitzgen created PR review comment:
It isn't that
uses_special_return
forces this, it is the pre-existing logic of when we need to legalize, and I have no idea why it is like that, I just faithfully kept it the same.
fitzgen submitted PR review.
fitzgen updated PR #5113 from avoid-cloning-sigs
to main
.
fitzgen updated PR #5113 from avoid-cloning-sigs
to main
.
cfallin submitted PR review.
cfallin created PR review comment:
Yeah, it looks like it was an over-eager guard that wasn't actually necessary. Latest version looks good.
cfallin submitted PR review.
fitzgen merged PR #5113.
Last updated: Dec 23 2024 at 12:05 UTC