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