[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


================
@@ -1175,6 +1175,36 @@ Instruction *InstCombinerImpl::visitLoadInst(LoadInst &LI) {
     if (Value *V = simplifyNonNullOperand(Op, /*HasDereferenceable=*/true))
       return replaceOperand(LI, 0, V);
 
+  if (isa<PointerType>(LI.getType())) {
----------------
pcc wrote:

Done

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


More information about the llvm-branch-commits mailing list