scudo: Obtain tag from pointer instead of loading it from memory. NFCI.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 22 Apr 2021 02:13:36 +0000 (19:13 -0700)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 22 Apr 2021 04:47:49 +0000 (21:47 -0700)
commite4fa0b307f7fe2c3db7442c719f643287f08eed4
treea81c690d75e6bbc7ed1a3767a63b3640ed337812
parent26f138eed4af8ac7f12d2f11af1ba0f8aac68d4b
scudo: Obtain tag from pointer instead of loading it from memory. NFCI.

Since we already have a tagged pointer available to us, we can just
extract the tag from it and avoid an LDG instruction.

Differential Revision: https://reviews.llvm.org/D101014
compiler-rt/lib/scudo/standalone/combined.h