[PATCH] D97065: [dfsan] Add origin address calculation

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 19 10:18:52 PST 2021


morehouse added inline comments.


================
Comment at: llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp:1554
+      OriginLong = IRB.CreateAnd(OriginLong, ConstantInt::get(IntptrTy, ~Mask));
+    }
+    OriginPtr = IRB.CreateIntToPtr(OriginLong, OriginPtrTy);
----------------
We can avoid this AND operation entirely by including it in the shadow mask.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97065



More information about the llvm-commits mailing list