[llvm] [IR] Add zext nneg flag (PR #67982)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 27 10:23:08 PDT 2023
================
@@ -37,6 +37,10 @@ bool Operator::hasPoisonGeneratingFlags() const {
// Note: inrange exists on constexpr only
return GEP->isInBounds() || GEP->getInRangeIndex() != std::nullopt;
}
+ case Instruction::ZExt:
+ if (auto *NNI = dyn_cast<PossiblyNonNegInst>(this))
----------------
topperc wrote:
Why do we need a dyn_cast instead of a cast?
https://github.com/llvm/llvm-project/pull/67982
More information about the llvm-commits
mailing list