[llvm] r266128 - NFC: MergeFunctions return early
JF Bastien via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 12 14:23:05 PDT 2016
Author: jfb
Date: Tue Apr 12 16:23:05 2016
New Revision: 266128
URL: http://llvm.org/viewvc/llvm-project?rev=266128&view=rev
Log:
NFC: MergeFunctions return early
Same effect, easier to read.
Modified:
llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp
Modified: llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp?rev=266128&r1=266127&r2=266128&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/MergeFunctions.cpp Tue Apr 12 16:23:05 2016
@@ -1001,6 +1001,7 @@ int FunctionComparator::cmpOperations(co
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(co
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()))
More information about the llvm-commits
mailing list