This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Fix BTI landing pad generation.
ClosedPublic

Authored by danielkiss on Feb 12 2020, 8:48 AM.

Details

Summary

In some cases BTI landing pad is inserted even compatible instruction
was there already. Meta instruction does not count in this case
therefore skip them in the check for first instructions in the function.

Diff Detail

Event Timeline

danielkiss created this revision.Feb 12 2020, 8:48 AM
ostannard requested changes to this revision.Feb 12 2020, 9:35 AM
ostannard added a subscriber: ostannard.
ostannard added inline comments.
llvm/test/CodeGen/AArch64/branch-target-enforcement-metainstruction.ll
1 ↗(On Diff #244199)

This would be better as a MIR test, so we can be sure there is a meta instruction at the beginning of the function. We already have branch-target-enforcement.mir, which this case could be added to.

This revision now requires changes to proceed.Feb 12 2020, 9:35 AM
danielkiss marked an inline comment as done.
This revision is now accepted and ready to land.Feb 13 2020, 2:08 AM

I don't have commit right, could you please commit it on my behalf?

This revision was automatically updated to reflect the committed changes.