[llvm] [ValueTracking] Allow tracking values through Integral AddrSpaceCasts (PR #70483)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 08:21:38 PDT 2024
================
@@ -1775,6 +1775,31 @@ 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);
----------------
nikic wrote:
```suggestion
auto *ASC = cast<AddrSpaceCastOperator>(I);
```
https://github.com/llvm/llvm-project/pull/70483
More information about the llvm-commits
mailing list