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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 23 17:47:07 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 ||
----------------
nikic wrote:

That's my understanding as well.

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


More information about the llvm-commits mailing list