diff options
| author | Stepan Dyatkovskiy <stpworld@narod.ru> | 2014-08-25 08:12:45 +0000 |
|---|---|---|
| committer | Stepan Dyatkovskiy <stpworld@narod.ru> | 2014-08-25 08:12:45 +0000 |
| commit | 016daddc525abb9d745fbac637f8426c8654de8b (patch) | |
| tree | 79d5dd84a64dbe9e92cd9104d9375181fa9359b6 /llvm/lib/Transforms/IPO/MergeFunctions.cpp | |
| parent | 8cd95a3b2c696650b03e526160b05b0232776fad (diff) | |
| download | bcm5719-llvm-016daddc525abb9d745fbac637f8426c8654de8b.tar.gz bcm5719-llvm-016daddc525abb9d745fbac637f8426c8654de8b.zip | |
MergeFunctions, tiny refactoring:
cmpGEP has been renamed to cmpGEPs (multiple form).
llvm-svn: 216373
Diffstat (limited to 'llvm/lib/Transforms/IPO/MergeFunctions.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/MergeFunctions.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp index ec43b9b8e09..27c1dd86590 100644 --- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp +++ b/llvm/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<GEPOperator>(GEPL), cast<GEPOperator>(GEPR)); + int cmpGEPs(const GEPOperator *GEPL, const GEPOperator *GEPR); + int cmpGEPs(const GetElementPtrInst *GEPL, const GetElementPtrInst *GEPR) { + return cmpGEPs(cast<GEPOperator>(GEPL), cast<GEPOperator>(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)) |

