[PATCH] D128551: [NFC][HWASan] Refactor hwasan pass
Leonard Chan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 24 12:32:53 PDT 2022
leonardchan created this revision.
leonardchan added reviewers: eugenis, vitalybuka.
leonardchan added a project: Sanitizers.
Herald added subscribers: Enna1, hiraditya.
Herald added a project: All.
leonardchan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This moves some code for getting PC and SP into their own functions. Since SP is also retrieved in the prologue and getting the stack tag, we can cache the SP if we get it once in the prologue. This caching will really only be relevant in D128387 <https://reviews.llvm.org/D128387> where `StackBaseTag` may not be set in the prologue if `__hwasan_tls` is not used.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D128551
Files:
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128551.439854.patch
Type: text/x-patch
Size: 3827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220624/218b5895/attachment.bin>
More information about the llvm-commits
mailing list