From: Stepan Dyatkovskiy Date: Mon, 25 Aug 2014 08:12:45 +0000 (+0000) Subject: MergeFunctions, tiny refactoring: X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c676425144825bd252f0b9c9ca7b5e5abe32439f;p=oota-llvm.git MergeFunctions, tiny refactoring: cmpGEP has been renamed to cmpGEPs (multiple form). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216373 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp index ec43b9b8e09..27c1dd86590 100644 --- a/lib/Transforms/IPO/MergeFunctions.cpp +++ b/lib/Transforms/IPO/MergeFunctions.cpp @@ -297,9 +297,9 @@ private: /// 3. Pointer operand type (using cmpType method). /// 4. Number of operands. /// 5. Compare operands, using cmpValues method. - int cmpGEP(const GEPOperator *GEPL, const GEPOperator *GEPR); - int cmpGEP(const GetElementPtrInst *GEPL, const GetElementPtrInst *GEPR) { - return cmpGEP(cast(GEPL), cast(GEPR)); + int cmpGEPs(const GEPOperator *GEPL, const GEPOperator *GEPR); + int cmpGEPs(const GetElementPtrInst *GEPL, const GetElementPtrInst *GEPR) { + return cmpGEPs(cast(GEPL), cast(GEPR)); } /// cmpType - compares two types, @@ -845,7 +845,7 @@ int FunctionComparator::cmpOperations(const Instruction *L, // Determine whether two GEP operations perform the same underlying arithmetic. // Read method declaration comments for more details. -int FunctionComparator::cmpGEP(const GEPOperator *GEPL, +int FunctionComparator::cmpGEPs(const GEPOperator *GEPL, const GEPOperator *GEPR) { unsigned int ASL = GEPL->getPointerAddressSpace(); @@ -945,7 +945,7 @@ int FunctionComparator::compare(const BasicBlock *BBL, const BasicBlock *BBR) { if (int Res = cmpValues(GEPL->getPointerOperand(), GEPR->getPointerOperand())) return Res; - if (int Res = cmpGEP(GEPL, GEPR)) + if (int Res = cmpGEPs(GEPL, GEPR)) return Res; } else { if (int Res = cmpOperations(InstL, InstR))