From: Sanjay Patel Date: Fri, 21 Feb 2020 21:46:39 +0000 (-0500) Subject: [SelectionDAG] remove unused isFast() helper function; NFC X-Git-Tag: llvmorg-12-init~13935 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ad6fc9928d8a5e3bd148a112d6e772248e515ae;p=platform%2Fupstream%2Fllvm.git [SelectionDAG] remove unused isFast() helper function; NFC 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. --- diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index 840e3d0..086a54c 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h @@ -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.