[PATCH] D105703: [hwasan] Use stack safety analysis.
Evgenii Stepanov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 16 12:56:48 PDT 2021
eugenis added a comment.
In D105703#2884056 <https://reviews.llvm.org/D105703#2884056>, @vitalybuka wrote:
> In D105703#2883666 <https://reviews.llvm.org/D105703#2883666>, @eugenis wrote:
>
>> Btw Vitaly, will this work with LTO out of the box? I think we used to add pre-LTO StackSafety pass explicitly for memtag only, but it looks like that code is gone.
>
> What do you mean gone? Can you show me the patch?
>
> We probably needs something to add analysis for HWASAN as well.
https://reviews.llvm.org/D80771
================
Comment at: llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp:427
+ bool DisableOptimization) {
assert(!CompileKernel || Recover);
+ return new HWAddressSanitizerLegacyPass(CompileKernel, Recover,
----------------
vitalybuka wrote:
> @eugenis unrelated to the patch, but why do we this args if then we assert(!CompileKernel || Recover);
why not? This forbids CompileKernel && !Recover, how else would you represent the 3 remaining combinations?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105703/new/
https://reviews.llvm.org/D105703
More information about the cfe-commits
mailing list