From f90029bb1413f0f1154d33a08457f9c192d7b068 Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Tue, 12 Apr 2016 21:23:05 +0000 Subject: NFC: MergeFunctions return early Same effect, easier to read. llvm-svn: 266128 --- llvm/lib/Transforms/IPO/MergeFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/IPO/MergeFunctions.cpp') 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(L)) { ArrayRef LIndices = EVI->getIndices(); @@ -1018,7 +1019,6 @@ int FunctionComparator::cmpOperations(const Instruction *L, return Res; return cmpNumbers(FI->getSynchScope(), cast(R)->getSynchScope()); } - if (const AtomicCmpXchgInst *CXI = dyn_cast(L)) { if (int Res = cmpNumbers(CXI->isVolatile(), cast(R)->isVolatile())) -- cgit v1.1