@@ -94,7 +94,7 @@ namespace {
94
94
95
95
private:
96
96
bool isEquivalentGEP (const GetElementPtrInst *GEP1,
97
- const GetElementPtrInst *GEP2);
97
+ const GetElementPtrInst *GEP2);
98
98
99
99
bool equals (const BasicBlock *BB1, const BasicBlock *BB2);
100
100
bool equals (const Function *F, const Function *G);
@@ -355,7 +355,7 @@ bool MergeFunctions::compare(const Value *V1, const Value *V2) {
355
355
if (Domain1 != Domain2)
356
356
if (Domain1 != LHS && Domain1 != RHS)
357
357
if (Domain2 != LHS && Domain2 != RHS)
358
- return false ;
358
+ return false ;
359
359
360
360
IDMap &Map1 = Domains[Domain1];
361
361
unsigned long &ID1 = Map1[V1];
@@ -383,10 +383,10 @@ bool MergeFunctions::equals(const BasicBlock *BB1, const BasicBlock *BB2) {
383
383
const GetElementPtrInst *GEP2 = cast<GetElementPtrInst>(GI);
384
384
385
385
if (!compare (GEP1->getPointerOperand (), GEP2->getPointerOperand ()))
386
- return false ;
386
+ return false ;
387
387
388
388
if (!isEquivalentGEP (GEP1, GEP2))
389
- return false ;
389
+ return false ;
390
390
} else {
391
391
if (!isEquivalentOperation (FI, GI))
392
392
return false ;
@@ -395,8 +395,8 @@ bool MergeFunctions::equals(const BasicBlock *BB1, const BasicBlock *BB2) {
395
395
Value *OpF = FI->getOperand (i);
396
396
Value *OpG = GI->getOperand (i);
397
397
398
- if (!compare (OpF, OpG))
399
- return false ;
398
+ if (!compare (OpF, OpG))
399
+ return false ;
400
400
401
401
if (OpF->getValueID () != OpG->getValueID () ||
402
402
!isEquivalentType (OpF->getType (), OpG->getType ()))
@@ -472,7 +472,7 @@ bool MergeFunctions::equals(const Function *F, const Function *G) {
472
472
assert (FTI->getNumSuccessors () == GTI->getNumSuccessors ());
473
473
for (unsigned i = 0 , e = FTI->getNumSuccessors (); i != e; ++i) {
474
474
if (!VisitedBBs.insert (FTI->getSuccessor (i)))
475
- continue ;
475
+ continue ;
476
476
FBBs.push_back (FTI->getSuccessor (i));
477
477
GBBs.push_back (GTI->getSuccessor (i));
478
478
}
0 commit comments