[llvm] [DAG] Early exit for flags in canCreateUndefOrPoison [nfc] (PR #89834)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 23 18:24:30 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 ||
----------------
preames wrote:

Dropped the ones which obviously correspond to IR level flags.  Any clue on NoFPExcept or Unpredictable?  As a guess, probably not poison generating?

https://github.com/llvm/llvm-project/pull/89834


More information about the llvm-commits mailing list