[SelectionDAG] remove unused isFast() helper function; NFC
authorSanjay Patel <spatel@rotateright.com>
Fri, 21 Feb 2020 21:46:39 +0000 (16:46 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 21 Feb 2020 21:58:10 +0000 (16:58 -0500)
We want flag users to check individual fast-math flags,
not that all of them are set. This was also probably
not working as intended because NoFPExcept isn't always
set on non-strict nodes.

llvm/include/llvm/CodeGen/SelectionDAGNodes.h

index 840e3d0..086a54c 100644 (file)
@@ -469,11 +469,6 @@ public:
   bool hasAllowReassociation() const { return AllowReassociation; }
   bool hasNoFPExcept() const { return NoFPExcept; }
 
-  bool isFast() const {
-    return NoSignedZeros && AllowReciprocal && NoNaNs && NoInfs && NoFPExcept &&
-           AllowContract && ApproximateFuncs && AllowReassociation;
-  }
-
   /// Clear any flags in this flag set that aren't also set in Flags.
   /// If the given Flags are undefined then don't do anything.
   void intersectWith(const SDNodeFlags Flags) {
@@ -990,7 +985,6 @@ public:
 
   const SDNodeFlags getFlags() const { return Flags; }
   void setFlags(SDNodeFlags NewFlags) { Flags = NewFlags; }
-  bool isFast() { return Flags.isFast(); }
 
   /// Clear any flags in this node that aren't also set in Flags.
   /// If Flags is not in a defined state then this has no effect.