This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Implement harden-sls-retbr for Thumb mode
ClosedPublic

Authored by kristof.beyls on Dec 1 2020, 8:21 AM.

Details

Summary

The only non-trivial consideration in this patch is that the formation
of TBB/TBH instructions, which is done in the constant island pass, does
not understand the speculation barriers inserted by the SLSHardening
pass. As such, when harden-sls-retbr is enabled for a function, the
formation of TBB/TBH instructions in the constant island pass is
disabled.

Diff Detail

Event Timeline

kristof.beyls created this revision.Dec 1 2020, 8:21 AM
This revision is now accepted and ready to land.Dec 17 2020, 1:47 AM
This revision was landed with ongoing or failed builds.Dec 19 2020, 4:33 AM
This revision was automatically updated to reflect the committed changes.