diff options
author | JF Bastien <jfb@google.com> | 2016-04-12 21:23:05 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2016-04-12 21:23:05 +0000 |
commit | f90029bb1413f0f1154d33a08457f9c192d7b068 (patch) | |
tree | 57ffa6288ecaf8865cc7cd6df512a59ccad4f8ce /llvm/lib/Transforms/IPO/MergeFunctions.cpp | |
parent | 7164767de2d79afee722998c2422f98fe9c04ef8 (diff) | |
download | llvm-f90029bb1413f0f1154d33a08457f9c192d7b068.zip llvm-f90029bb1413f0f1154d33a08457f9c192d7b068.tar.gz llvm-f90029bb1413f0f1154d33a08457f9c192d7b068.tar.bz2 |
NFC: MergeFunctions return early
Same effect, easier to read.
llvm-svn: 266128
Diffstat (limited to 'llvm/lib/Transforms/IPO/MergeFunctions.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/MergeFunctions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp index b08e7f7..846cddf 100644 --- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp +++ b/llvm/lib/Transforms/IPO/MergeFunctions.cpp @@ -1001,6 +1001,7 @@ int FunctionComparator::cmpOperations(const Instruction *L, if (int Res = cmpNumbers(LIndices[i], RIndices[i])) return Res; } + return 0; } if (const ExtractValueInst *EVI = dyn_cast<ExtractValueInst>(L)) { ArrayRef<unsigned> LIndices = EVI->getIndices(); @@ -1018,7 +1019,6 @@ int FunctionComparator::cmpOperations(const Instruction *L, return Res; return cmpNumbers(FI->getSynchScope(), cast<FenceInst>(R)->getSynchScope()); } - if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(L)) { if (int Res = cmpNumbers(CXI->isVolatile(), cast<AtomicCmpXchgInst>(R)->isVolatile())) |