[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
================
@@ -1775,6 +1782,28 @@ static void computeKnownBitsFromOperator(const Operator *I,
Depth + 1))
computeKnownBits(I->getOperand(0), Known, Depth + 1, Q);
break;
+ case Instruction::AddrSpaceCast: {
+ auto ASC = dyn_cast<AddrSpaceCastOperator>(I);
+ assert(ASC);
----------------
arsenm wrote:
just use cast<>
https://github.com/llvm/llvm-project/pull/70483
More information about the llvm-commits
mailing list