[llvm] Add known and demanded bits support for zext nneg (PR #70858)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 6 11:11:09 PST 2023
================
@@ -1103,6 +1103,9 @@ static void computeKnownBitsFromOperator(const Operator *I,
assert(SrcBitWidth && "SrcBitWidth can't be zero");
Known = Known.anyextOrTrunc(SrcBitWidth);
computeKnownBits(I->getOperand(0), Known, Depth + 1, Q);
+ if (auto *Inst = dyn_cast<PossiblyNonNegInst>(I);
----------------
preames wrote:
Not sure what you're suggesting? Why would I want to expand the scope of the Inst variable?
https://github.com/llvm/llvm-project/pull/70858
More information about the llvm-commits
mailing list