[llvm] [ValueTracking] Allow tracking values through Integral AddrSpaceCasts (PR #70483)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 23:03:45 PST 2023


================
@@ -1775,6 +1775,34 @@ static void computeKnownBitsFromOperator(const Operator *I,
                                   Depth + 1))
       computeKnownBits(I->getOperand(0), Known, Depth + 1, Q);
     break;
+  case Instruction::AddrSpaceCast: {
+    auto ASC = cast<AddrSpaceCastOperator>(I);
+    unsigned SrcAS = ASC->getSrcAddressSpace();
+    unsigned DestAS = ASC->getDestAddressSpace();
+
+    auto DL = Q.DL;
----------------
arsenm wrote:

No need to copy this 

https://github.com/llvm/llvm-project/pull/70483


More information about the llvm-commits mailing list