[llvm] [InferAddressSpaces] Handle unconverted ptrmask (PR #140802)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 24 20:46:36 PDT 2025
================
@@ -495,6 +495,13 @@ class TargetTransformInfo {
LLVM_ABI bool isNoopAddrSpaceCast(unsigned FromAS, unsigned ToAS) const;
+ LLVM_ABI std::pair<KnownBits, KnownBits>
+ computeKnownBitsAddrSpaceCast(unsigned FromAS, unsigned ToAS,
+ const Value &PtrOp) const;
+
+ LLVM_ABI KnownBits computeKnownBitsAddrSpaceCast(
----------------
arsenm wrote:
There isn't a better solution now, without pulling a dependence on TTI into ValueTracking, which is a bigger change.
Really TTI doesn't feel like the right place for this. It belongs in some kind of other target-IR-information that doesn't depend on codegen, but we do not have such a place today
https://github.com/llvm/llvm-project/pull/140802
More information about the llvm-commits
mailing list