Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Stub out getValueFromRuntimeHandle. #550

Merged
merged 1 commit into from
May 7, 2015

Conversation

pgavlin
Copy link
Contributor

@pgavlin pgavlin commented May 6, 2015

Other JITs either
a) do not optimize this path, or
b) only optimize here if the incoming argument is the result of lowering
a ldtoken instruction.

We don't yet have the ability do detect (b); stick with (a) in the meantime.

@pgavlin
Copy link
Contributor Author

pgavlin commented May 6, 2015

This closes #550; #551 tracks further optimizations.

@AndyAyersMS
Copy link
Member

LGTM.

@@ -3718,7 +3718,8 @@ IRNode *GenIR::callHelper(CorInfoHelpFunc HelperID, bool MayThrow, IRNode *Dst,
(Dst == nullptr) ? Type::getVoidTy(LLVMContext) : Dst->getType();
return (IRNode *)callHelperImpl(HelperID, MayThrow, ReturnType, Arg1, Arg2,
Arg3, Arg4, Alignment, IsVolatile, NoCtor,
CanMoveUp).getInstruction();
CanMoveUp)
.getInstruction();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's with these weird dangling .?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When clang-format says jump, I jump.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shrug. I figured. But it looks strange to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. We'll see how the formatting job feels about it, since it's likely that I'm running a slightly newer version of clang-format locally.

Other JITs either
a) do not optimize this path, or
b) only optimize here if the incoming argument is the result of lowering
   a ldtoken instruction.

We don't yet have the ability do detect (b); stick with (a) in the meantime.
@pgavlin pgavlin force-pushed the GetValueFromRuntimeHandle branch from 3fa2a1f to be3a522 Compare May 7, 2015 00:48
pgavlin added a commit that referenced this pull request May 7, 2015
@pgavlin pgavlin merged commit 8188ea7 into dotnet:master May 7, 2015
@pgavlin pgavlin deleted the GetValueFromRuntimeHandle branch May 7, 2015 03:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants