[llvm] [InferAS] Infer the address space of inttoptr (PR #173244)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 22 01:48:26 PST 2026
================
@@ -193,6 +193,11 @@ class TargetTransformInfoImplBase {
return FromPtrBits.anyextOrTrunc(ToASBitSize);
}
+ virtual APInt getAddrSpaceCastPreservedPtrMask(unsigned SrcAS,
+ unsigned DstAS) const {
+ return APInt::getZero(DL.getPointerSizeInBits());
----------------
arsenm wrote:
This should not use the default address space size (actually is this supposed to return the source width, the dest width, or is it assumed they are the same?)
https://github.com/llvm/llvm-project/pull/173244
More information about the llvm-commits
mailing list