[llvm] r281120 - Remove dead code in the SelectionDAG headers (NFC)
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 9 17:05:20 PDT 2016
Author: vedantk
Date: Fri Sep 9 19:05:19 2016
New Revision: 281120
URL: http://llvm.org/viewvc/llvm-project?rev=281120&view=rev
Log:
Remove dead code in the SelectionDAG headers (NFC)
I tested this with "ninja check-llvm-codegen" on a Release build with
all architectures enabled, and again with a Debug build on x86.
Found with llvm-cov.
Differential Revision: https://reviews.llvm.org/D24433
Modified:
llvm/trunk/include/llvm/CodeGen/SelectionDAG.h
llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAG.h?rev=281120&r1=281119&r2=281120&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAG.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAG.h Fri Sep 9 19:05:19 2016
@@ -666,11 +666,6 @@ public:
return getNode(ISD::BUILD_VECTOR, DL, VT, Ops);
}
- /// Return a splat ISD::BUILD_VECTOR node, but with Op's SDLoc.
- SDValue getSplatBuildVector(EVT VT, SDValue Op) {
- return getSplatBuildVector(VT, SDLoc(Op), Op);
- }
-
/// \brief Returns an ISD::VECTOR_SHUFFLE node semantically equivalent to
/// the shuffle node in input but with swapped operands.
///
Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=281120&r1=281119&r2=281120&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Fri Sep 9 19:05:19 2016
@@ -371,14 +371,6 @@ public:
bool hasAllowReciprocal() const { return AllowReciprocal; }
bool hasVectorReduction() const { return VectorReduction; }
- /// Return a raw encoding of the flags.
- /// This function should only be used to add data to the NodeID value.
- unsigned getRawFlags() const {
- return (NoUnsignedWrap << 0) | (NoSignedWrap << 1) | (Exact << 2) |
- (UnsafeAlgebra << 3) | (NoNaNs << 4) | (NoInfs << 5) |
- (NoSignedZeros << 6) | (AllowReciprocal << 7);
- }
-
/// Clear any flags in this flag set that aren't also set in Flags.
void intersectWith(const SDNodeFlags *Flags) {
NoUnsignedWrap &= Flags->NoUnsignedWrap;
More information about the llvm-commits
mailing list