[llvm] [HWASan] add optimization remarks for ignoreAccess (PR #94551)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 18:25:42 PDT 2024
================
@@ -337,13 +337,17 @@ class HWAddressSanitizer {
unsigned AccessSizeIndex,
Instruction *InsertBefore, DomTreeUpdater &DTU,
LoopInfo *LI);
- bool ignoreMemIntrinsic(MemIntrinsic *MI);
+ bool ignoreMemIntrinsic(OptimizationRemarkEmitter &ORE, MemIntrinsic *MI);
void instrumentMemIntrinsic(MemIntrinsic *MI);
bool instrumentMemAccess(InterestingMemoryOperand &O, DomTreeUpdater &DTU,
LoopInfo *LI);
bool ignoreAccess(Instruction *Inst, Value *Ptr);
+ bool ignoreAccessWithRemark(OptimizationRemarkEmitter &ORE, Instruction *Inst,
----------------
vitalybuka wrote:
I would prefer without redundant `WithRemark` just 'ignoreAccess(OptimizationRemarkEmitter &ORE,'
https://github.com/llvm/llvm-project/pull/94551
More information about the llvm-commits
mailing list