[llvm] [InferAddressSpaces] Infer pointer stored and then loaded from global variable (PR #159755)
Wenju He via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 22 01:47:09 PDT 2025
================
@@ -755,6 +797,10 @@ Value *InferAddressSpacesImpl::cloneInstructionWithNewAddressSpace(
// back.
return new AddrSpaceCastInst(Src, NewPtrType);
}
+ case Instruction::Load:
+ if (I->getType()->isPtrOrPtrVectorTy())
----------------
wenju-he wrote:
> Vector case not tested
done
https://github.com/llvm/llvm-project/pull/159755
More information about the llvm-commits
mailing list