This is an archive of the discontinued LLVM Phabricator instance.

Revert "[AArch64][v8.3A] Avoid inserting implicit landing pads (PACI*SP)"
ClosedPublic

Authored by eugenis on Jan 17 2023, 4:50 PM.

Details

Summary

Linux kernel sets SCTRL_EL1.BT0 and BT1 to 1 unconditionally, which
makes PACIASP equivalent to BTI C + PACIA LR,SP.

Use the shorter instruction sequence by default.

I'm not aware of anyone who needs the opposite. They are welcome to
revert to the current behavior under a subtarget feature or an
environment check.

This reverts commit 571c8c5263a79293aaadae07b11feb36726eaf53.

Diff Detail

Event Timeline

eugenis created this revision.Jan 17 2023, 4:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2023, 4:50 PM
eugenis requested review of this revision.Jan 17 2023, 4:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2023, 4:50 PM
danielkiss accepted this revision.Jan 18 2023, 1:00 AM

Thanks for the patch. LGTM.

This revision is now accepted and ready to land.Jan 18 2023, 1:00 AM
This revision was landed with ongoing or failed builds.Jan 19 2023, 2:09 PM
This revision was automatically updated to reflect the committed changes.