[llvm] [DAG] Early exit for flags in canCreateUndefOrPoison [nfc] (PR #89834)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 23 15:14:14 PDT 2024
================
@@ -452,6 +452,13 @@ struct SDNodeFlags {
bool hasNoFPExcept() const { return NoFPExcept; }
bool hasUnpredictable() const { return Unpredictable; }
+ bool hasAny() const {
+ return NoUnsignedWrap || NoSignedWrap || Exact || Disjoint || NonNeg ||
+ NoNaNs || NoInfs || NoSignedZeros || AllowReciprocal ||
+ AllowContract || ApproximateFuncs || AllowReassociation ||
----------------
topperc wrote:
I thought of the FMFs, only NoNaNs, NoInfs, and NoSignedZeros are poison generating.
https://github.com/llvm/llvm-project/pull/89834
More information about the llvm-commits
mailing list