[llvm] [ValueTracking] NFC: Allow tracking values through AddrSpaceCasts (PR #70483)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 30 01:57:27 PDT 2023
================
@@ -895,6 +897,13 @@ class TargetTransformInfoImplBase {
unsigned getMaxNumArgs() const { return UINT_MAX; }
+ std::optional<KnownBits>
+ computeKnownBitsAddrSpaceCast(unsigned DestAS, unsigned SrcAS,
+ const APInt &DemandedElts, KnownBits &Known,
+ const SimplifyQuery &Q) const {
+ return std::nullopt;
----------------
arsenm wrote:
The default implementation might consider checking the alignment for integral address spaces
https://github.com/llvm/llvm-project/pull/70483
More information about the llvm-commits
mailing list