Skip to content

Commit 222c91b

Browse files
committed
clang-format
1 parent 8529836 commit 222c91b

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -760,9 +760,7 @@ void NumericalStabilitySanitizer::createShadowArguments(
760760
}))
761761
return;
762762

763-
IRBuilder<> Builder(
764-
&F.getEntryBlock(),
765-
F.getEntryBlock().getFirstNonPHIIt());
763+
IRBuilder<> Builder(&F.getEntryBlock(), F.getEntryBlock().getFirstNonPHIIt());
766764
// The function has shadow args if the shadow args tag matches the function
767765
// address.
768766
Value *HasShadowArgs = Builder.CreateICmpEQ(

llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,8 @@ static bool isTsanAtomic(const Instruction *I) {
479479
}
480480

481481
void ThreadSanitizer::InsertRuntimeIgnores(Function &F) {
482-
InstrumentationIRBuilder IRB(
483-
&F.getEntryBlock(),
484-
F.getEntryBlock().getFirstNonPHIIt());
482+
InstrumentationIRBuilder IRB(&F.getEntryBlock(),
483+
F.getEntryBlock().getFirstNonPHIIt());
485484
IRB.CreateCall(TsanIgnoreBegin);
486485
EscapeEnumerator EE(F, "tsan_ignore_cleanup", ClHandleCxxExceptions);
487486
while (IRBuilder<> *AtExit = EE.Next()) {
@@ -571,9 +570,8 @@ bool ThreadSanitizer::sanitizeFunction(Function &F,
571570

572571
// Instrument function entry/exit points if there were instrumented accesses.
573572
if ((Res || HasCalls) && ClInstrumentFuncEntryExit) {
574-
InstrumentationIRBuilder IRB(
575-
&F.getEntryBlock(),
576-
F.getEntryBlock().getFirstNonPHIIt());
573+
InstrumentationIRBuilder IRB(&F.getEntryBlock(),
574+
F.getEntryBlock().getFirstNonPHIIt());
577575
Value *ReturnAddress =
578576
IRB.CreateIntrinsic(Intrinsic::returnaddress, {}, IRB.getInt32(0));
579577
IRB.CreateCall(TsanFuncEntry, ReturnAddress);

llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -736,18 +736,16 @@ static void createMemMoveLoopKnownSize(Instruction *InsertBefore,
736736
// the same way, except that we change the IRBuilder insert point for each
737737
// load/store pair so that each one is inserted before the previous one
738738
// instead of after it.
739-
IRBuilder<> BwdResBuilder(
740-
CopyBackwardsBB,
741-
CopyBackwardsBB->getFirstNonPHIIt());
739+
IRBuilder<> BwdResBuilder(CopyBackwardsBB,
740+
CopyBackwardsBB->getFirstNonPHIIt());
742741
SmallVector<Type *, 5> RemainingOps;
743742
TTI.getMemcpyLoopResidualLoweringType(RemainingOps, Ctx, RemainingBytes,
744743
SrcAS, DstAS, PartSrcAlign,
745744
PartDstAlign);
746745
for (auto *OpTy : RemainingOps) {
747746
// reverse the order of the emitted operations
748-
BwdResBuilder.SetInsertPoint(
749-
CopyBackwardsBB,
750-
CopyBackwardsBB->getFirstNonPHIIt());
747+
BwdResBuilder.SetInsertPoint(CopyBackwardsBB,
748+
CopyBackwardsBB->getFirstNonPHIIt());
751749
GenerateResidualLdStPair(OpTy, BwdResBuilder, BytesCopied);
752750
}
753751
}

0 commit comments

Comments
 (0)