Skip to content
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

Preserve CallInst metadata in LateLowerGCFrame pass. #26844

Merged
merged 1 commit into from
Apr 19, 2018

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented Apr 18, 2018

I was experimenting with !range metadata on NVPTX intrinsics, and noticed it got dropped after our GC frame lowering pass (the same happens with other metadata).

@maleadt maleadt added the compiler:codegen Generation of LLVM IR and native code label Apr 18, 2018
@maleadt maleadt requested a review from Keno April 18, 2018 12:25
@maleadt maleadt merged commit a8f356b into master Apr 19, 2018
@maleadt maleadt deleted the tb/callinst_metadata branch April 19, 2018 05:56
@@ -1749,7 +1749,14 @@ bool LateLowerGCFrame::CleanupIR(Function &F, State *S) {
old_attrs.getFnAttributes());
NewCall->setAttributes(attr);
#endif
NewCall->setDebugLoc(CI->getDebugLoc());
#if JL_LLVM_VERSION >= 40000
NewCall->copyMetadata(CI);
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

apparently should have been *CI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:codegen Generation of LLVM IR and native code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants