mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
NFC: MergeFunctions return early
Same effect, easier to read. llvm-svn: 266128
This commit is contained in:
parent
30a743add7
commit
1b80834fc9
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user