[llvm-branch-commits] [llvm] SROA: Recognize llvm.protected.field.ptr intrinsics. (PR #151650)

Peter Collingbourne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Dec 5 15:07:23 PST 2025


================
@@ -158,6 +159,10 @@ class PtrUseVisitorBase {
   /// The constant offset of the use if that is known.
   APInt Offset;
 
+  // When this access is via an llvm.protected.field.ptr intrinsic, contains
+  // the second argument to the intrinsic, the discriminator.
+  Value *ProtectedFieldDisc;
----------------
pcc wrote:

Sure, we can move visiting the uses of `llvm.protected.field.ptr` into `SliceBuilder::visitIntrinsicInst`. Done.

https://github.com/llvm/llvm-project/pull/151650


More information about the llvm-branch-commits mailing list