[llvm] r296995 - [APInt] Remove add and sub functions from APIntOps namespace.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 5 20:35:02 PST 2017


Author: ctopper
Date: Sun Mar  5 22:35:01 2017
New Revision: 296995

URL: http://llvm.org/viewvc/llvm-project?rev=296995&view=rev
Log:
[APInt] Remove add and sub functions from APIntOps namespace.

They aren't used in tree and using the overloaded operators has more optimization opportunities.

Modified:
    llvm/trunk/include/llvm/ADT/APInt.h

Modified: llvm/trunk/include/llvm/ADT/APInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APInt.h?rev=296995&r1=296994&r2=296995&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APInt.h Sun Mar  5 22:35:01 2017
@@ -1965,16 +1965,6 @@ inline APInt urem(const APInt &LHS, cons
 /// Performs multiplication on APInt values.
 inline APInt mul(const APInt &LHS, const APInt &RHS) { return LHS * RHS; }
 
-/// \brief Function for addition operation.
-///
-/// Performs addition on APInt values.
-inline APInt add(const APInt &LHS, const APInt &RHS) { return LHS + RHS; }
-
-/// \brief Function for subtraction operation.
-///
-/// Performs subtraction on APInt values.
-inline APInt sub(const APInt &LHS, const APInt &RHS) { return LHS - RHS; }
-
 } // End of APIntOps namespace
 
 // See friend declaration above. This additional declaration is required in




More information about the llvm-commits mailing list