This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Fix for BTI landing pad insertion with PAC-RET+bkey.
ClosedPublic

Authored by danielkiss on Apr 21 2021, 1:57 PM.

Details

Summary

EMITBKEY is emitted for PAC-RET+bkey, which is a non machine instructions.

PR: 49957

Diff Detail

Event Timeline

danielkiss created this revision.Apr 21 2021, 1:57 PM
danielkiss requested review of this revision.Apr 21 2021, 1:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 21 2021, 1:57 PM

I don't think this is correct in general - check AArch64ExpandPseudoInsts.cpp for a long list of pseudos that are replaced with real machine instructions.

danielkiss edited the summary of this revision. (Show Details)

Ah, right. EMITBKEY should be a meta one but it seems as a problematic change.
Let's simplify this now and hope no other need to be added too.

eugenis accepted this revision.Apr 21 2021, 2:30 PM

LGTM, thanks!

This revision is now accepted and ready to land.Apr 21 2021, 2:30 PM
This revision was landed with ongoing or failed builds.Apr 23 2021, 1:07 AM
This revision was automatically updated to reflect the committed changes.