From: Craig Topper Date: Mon, 6 Mar 2017 04:35:01 +0000 (+0000) Subject: [APInt] Remove add and sub functions from APIntOps namespace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8da2185645137949cd41133cb3e48a3b6b9c791d;p=llvm [APInt] Remove add and sub functions from APIntOps namespace. They aren't used in tree and using the overloaded operators has more optimization opportunities. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296995 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index c57bac4fe26..2d3f6207505 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -1965,16 +1965,6 @@ inline APInt urem(const APInt &LHS, const APInt &RHS) { return LHS.urem(RHS); } /// 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