[llvm-branch-commits] [clang] [llvm] Move {load, store}(llvm.protected.field.ptr) lowering to InstCombine. (PR #186548)

Peter Collingbourne via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Apr 3 17:05:58 PDT 2026


================
@@ -1542,6 +1572,35 @@ Instruction *InstCombinerImpl::visitStoreInst(StoreInst &SI) {
     if (Value *V = simplifyNonNullOperand(Ptr, /*HasDereferenceable=*/true))
       return replaceOperand(SI, 1, V);
 
+  if (isa<PointerType>(Val->getType())) {
+    if (auto *II = dyn_cast<IntrinsicInst>(Ptr)) {
----------------
pcc wrote:

Done

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


More information about the llvm-branch-commits mailing list