Skip to content

Commit 8294ff8

Browse files
committed
Code formatting
1 parent 9c72e20 commit 8294ff8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,10 @@ static void countNumMemAccesses(const Value *Ptr, unsigned &NumStores,
6363
if (const auto *SI = dyn_cast<StoreInst>(User)) {
6464
if (SI->getPointerOperand() == Ptr && !SI->isVolatile())
6565
NumStores++;
66-
}
67-
else if (const auto *LI = dyn_cast<LoadInst>(User)) {
66+
} else if (const auto *LI = dyn_cast<LoadInst>(User)) {
6867
if (LI->getPointerOperand() == Ptr && !LI->isVolatile())
6968
NumLoads++;
70-
}
71-
else if (const auto *GEP = dyn_cast<GetElementPtrInst>(User)) {
69+
} else if (const auto *GEP = dyn_cast<GetElementPtrInst>(User)) {
7270
if (GEP->getPointerOperand() == Ptr)
7371
countNumMemAccesses(GEP, NumStores, NumLoads, F);
7472
}
@@ -122,7 +120,7 @@ unsigned SystemZTTIImpl::adjustInliningThreshold(const CallBase *CB) const {
122120
unsigned NumStores = 0;
123121
unsigned NumLoads = 0;
124122
for (unsigned OpIdx = 0; OpIdx != Callee->arg_size(); ++OpIdx) {
125-
Value *CallerArg = CB->getArgOperand(OpIdx);
123+
Value *CallerArg = CB->getArgOperand(OpIdx);
126124
Argument *CalleeArg = Callee->getArg(OpIdx);
127125
if (isa<AllocaInst>(CallerArg))
128126
countNumMemAccesses(CalleeArg, NumStores, NumLoads, Callee);

0 commit comments

Comments
 (0)