Skip to content

Commit 38d8c31

Browse files
committed
clang-format
1 parent 61c8e98 commit 38d8c31

File tree

8 files changed

+11
-16
lines changed

8 files changed

+11
-16
lines changed

llvm/include/llvm/Transforms/Utils/Local.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,7 @@ handleUnreachableTerminator(Instruction *I,
396396
/// Remove all instructions from a basic block other than its terminator
397397
/// and any present EH pad instructions. Returns the number of instructions
398398
/// that have been removed.
399-
LLVM_ABI unsigned
400-
removeAllNonTerminatorAndEHPadInstructions(BasicBlock *BB);
399+
LLVM_ABI unsigned removeAllNonTerminatorAndEHPadInstructions(BasicBlock *BB);
401400

402401
/// Insert an unreachable instruction before the specified
403402
/// instruction, making it and the rest of the code in the block dead.

llvm/lib/Analysis/DemandedBits.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ using namespace llvm::PatternMatch;
4646
#define DEBUG_TYPE "demanded-bits"
4747

4848
static bool isAlwaysLive(Instruction *I) {
49-
return I->isTerminator() || I->isEHPad() ||
50-
I->mayHaveSideEffects();
49+
return I->isTerminator() || I->isEHPad() || I->mayHaveSideEffects();
5150
}
5251

5352
void DemandedBits::determineLiveOperandBits(

llvm/lib/CodeGen/CodeGenPrepare.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2977,9 +2977,8 @@ bool CodeGenPrepare::dupRetToEnableTailCallOpts(BasicBlock *BB,
29772977
// and return.
29782978
BasicBlock::const_iterator BI = BB->getFirstNonPHIIt();
29792979
// Skip over pseudo-probes and the bitcast.
2980-
while (&*BI == BCI || &*BI == EVI ||
2981-
isa<PseudoProbeInst>(BI) || isLifetimeEndOrBitCastFor(&*BI) ||
2982-
isFakeUse(&*BI))
2980+
while (&*BI == BCI || &*BI == EVI || isa<PseudoProbeInst>(BI) ||
2981+
isLifetimeEndOrBitCastFor(&*BI) || isFakeUse(&*BI))
29832982
BI = std::next(BI);
29842983
if (&*BI != RetI)
29852984
return false;

llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5613,8 +5613,8 @@ BasicBlock::iterator LSRInstance::AdjustInsertPositionForExpand(
56135613
}
56145614
}
56155615

5616-
assert(!isa<PHINode>(LowestIP) && !LowestIP->isEHPad()
5617-
&& "Insertion point must be a normal instruction");
5616+
assert(!isa<PHINode>(LowestIP) && !LowestIP->isEHPad() &&
5617+
"Insertion point must be a normal instruction");
56185618

56195619
// Then, climb up the immediate dominator tree as far as we can go while
56205620
// still being dominated by the input positions.

llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,7 @@ CallInst *TailRecursionEliminator::findTRECandidate(BasicBlock *BB) {
483483
// double fabs(double f) { return __builtin_fabs(f); } // a 'fabs' call
484484
// and disable this xform in this case, because the code generator will
485485
// lower the call to fabs into inline code.
486-
if (BB == &F.getEntryBlock() &&
487-
&BB->front() == CI &&
486+
if (BB == &F.getEntryBlock() && &BB->front() == CI &&
488487
&*std::next(BB->begin()) == TI && CI->getCalledFunction() &&
489488
!TTI->isLoweredToCall(CI->getCalledFunction())) {
490489
// A single-block function with just a call and a return. Check that

llvm/lib/Transforms/Utils/CodeExtractor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,8 @@ static void fixupDebugInfoPostExtraction(Function &OldFunc, Function &NewFunc,
13741374
}
13751375

13761376
// If the variable was in the scope of the old function, i.e. it was not
1377-
// inlined, point the intrinsic to a fresh variable within the new function.
1377+
// inlined, point the intrinsic to a fresh variable within the new
1378+
// function.
13781379
if (!DVR.getDebugLoc().getInlinedAt())
13791380
DVR.setVariable(GetUpdatedDIVariable(DVR.getVariable()));
13801381
}

llvm/lib/Transforms/Utils/Local.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2849,8 +2849,7 @@ bool llvm::handleUnreachableTerminator(
28492849
return Changed;
28502850
}
28512851

2852-
unsigned
2853-
llvm::removeAllNonTerminatorAndEHPadInstructions(BasicBlock *BB) {
2852+
unsigned llvm::removeAllNonTerminatorAndEHPadInstructions(BasicBlock *BB) {
28542853
unsigned NumDeadInst = 0;
28552854
// Delete the instructions backwards, as it has a reduced likelihood of
28562855
// having to update as many def-use and use-def chains.

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,8 +1130,7 @@ static void cloneInstructionsIntoPredecessorBlockAndUpdateSSAUses(
11301130

11311131
Instruction *NewBonusInst = BonusInst.clone();
11321132

1133-
if (!NewBonusInst->getDebugLoc().isSameSourceLocation(
1134-
PTI->getDebugLoc())) {
1133+
if (!NewBonusInst->getDebugLoc().isSameSourceLocation(PTI->getDebugLoc())) {
11351134
// Unless the instruction has the same !dbg location as the original
11361135
// branch, drop it. When we fold the bonus instructions we want to make
11371136
// sure we reset their debug locations in order to avoid stepping on

0 commit comments

Comments
 (0)