This is an archive of the discontinued LLVM Phabricator instance.

[hwasan] Refactor frame record info into function
ClosedPublic

Authored by leonardchan on Jul 7 2022, 11:42 AM.

Details

Summary

This way it can be reused easily in D128387.

Note this changes the IR slightly. Before The steps for calculating and storing the frame record info were:

  1. getPC
  2. getSP
  3. inttoptr
  4. or SP, PC
  5. store

Now the steps are:

  1. getPC
  2. getSP
  3. or SP, PC
  4. inttoptr
  5. store

Diff Detail

Event Timeline

leonardchan created this revision.Jul 7 2022, 11:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2022, 11:42 AM
leonardchan requested review of this revision.Jul 7 2022, 11:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2022, 11:42 AM
vitalybuka accepted this revision.Jul 7 2022, 12:13 PM

Thanks, now this inttoptr will not distract on the main path

This revision is now accepted and ready to land.Jul 7 2022, 12:13 PM
This revision was landed with ongoing or failed builds.Jul 7 2022, 2:45 PM
This revision was automatically updated to reflect the committed changes.