This is an archive of the discontinued LLVM Phabricator instance.

hwasan: Use llvm.read_register intrinsic to read the PC on aarch64 instead of taking the function's address.
ClosedPublic

Authored by pcc on Jun 17 2019, 8:39 PM.

Details

Summary

This shaves an instruction (and a GOT entry in PIC code) off prologues of
functions with stack variables.

Depends on D63469

Depends on D63471

Event Timeline

pcc created this revision.Jun 17 2019, 8:39 PM
pcc updated this revision to Diff 205245.Jun 17 2019, 8:44 PM
  • Add test
eugenis accepted this revision.Jun 21 2019, 4:13 PM

LGTM nice!

This revision is now accepted and ready to land.Jun 21 2019, 4:13 PM
This revision was automatically updated to reflect the committed changes.