diff options
| author | Stepan Dyatkovskiy <stpworld@narod.ru> | 2014-07-31 07:16:59 +0000 |
|---|---|---|
| committer | Stepan Dyatkovskiy <stpworld@narod.ru> | 2014-07-31 07:16:59 +0000 |
| commit | 87c046189dd1029d8ee0fb3382869220678f5151 (patch) | |
| tree | a192cf7c56c4a5a34baf2adddf7fda66da653ba8 /llvm/lib | |
| parent | eff58f0d936cfb0ad2ef2d46240d103461b82927 (diff) | |
| download | bcm5719-llvm-87c046189dd1029d8ee0fb3382869220678f5151.tar.gz bcm5719-llvm-87c046189dd1029d8ee0fb3382869220678f5151.zip | |
MergeFunctions, tiny refactoring:
cmpOperation has been renamed to cmpOperations (multiple form).
llvm-svn: 214392
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/IPO/MergeFunctions.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp index 2fb0ddb174a..ec43b9b8e09 100644 --- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp +++ b/llvm/lib/Transforms/IPO/MergeFunctions.cpp @@ -286,7 +286,7 @@ private: /// 6.4.Load: range metadata (as integer numbers) /// On this stage its better to see the code, since its not more than 10-15 /// strings for particular instruction, and could change sometimes. - int cmpOperation(const Instruction *L, const Instruction *R) const; + int cmpOperations(const Instruction *L, const Instruction *R) const; /// Compare two GEPs for equivalent pointer arithmetic. /// Parts to be compared for each comparison stage, @@ -705,8 +705,8 @@ int FunctionComparator::cmpType(Type *TyL, Type *TyR) const { // and pointer-to-B are equivalent. This should be kept in sync with // Instruction::isSameOperationAs. // Read method declaration comments for more details. -int FunctionComparator::cmpOperation(const Instruction *L, - const Instruction *R) const { +int FunctionComparator::cmpOperations(const Instruction *L, + const Instruction *R) const { // Differences from Instruction::isSameOperationAs: // * replace type comparison with calls to isEquivalentType. // * we test for I->hasSameSubclassOptionalData (nuw/nsw/tail) at the top @@ -948,7 +948,7 @@ int FunctionComparator::compare(const BasicBlock *BBL, const BasicBlock *BBR) { if (int Res = cmpGEP(GEPL, GEPR)) return Res; } else { - if (int Res = cmpOperation(InstL, InstR)) + if (int Res = cmpOperations(InstL, InstR)) return Res; assert(InstL->getNumOperands() == InstR->getNumOperands()); |

