[PATCH] D149021: [TTI][ASAN] Introduce TTI::getInterestingMemoryOperand.

Kito Cheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 00:46:11 PDT 2023


kito-cheng added inline comments.


================
Comment at: llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp:1307-1312
+  if (auto *II = dyn_cast<IntrinsicInst>(I)) {
+    if (InterestingMemoryOperand IMO = TTI->getInterestingMemoryOperand(II)) {
+      Interesting.push_back(IMO);
+      return;
+    }
+  }
----------------
nit: combine into the existing if-then-else chain.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149021/new/

https://reviews.llvm.org/D149021



More information about the llvm-commits mailing list