This is an archive of the discontinued LLVM Phabricator instance.

[Inline] Copy "null-pointer-is-valid" attribute in caller.
ClosedPublic

Authored by manojgupta on Jul 30 2018, 12:06 PM.

Details

Summary

Normally, inling does not happen if caller does not have
"null-pointer-is-valid"="true" attibute but callee has it.

However, alwaysinline may force callee to be inlined.
In this case, if the caller has the "null-pointer-is-valid"="true"
attribute, copy the attribute to caller.

Diff Detail

Event Timeline

manojgupta created this revision.Jul 30 2018, 12:06 PM
This revision is now accepted and ready to land.Jul 30 2018, 12:29 PM
This revision was automatically updated to reflect the committed changes.

Congrats on D50000 :)

πŸŽ‰πŸŽ‰πŸŽ‰