From 0bc3336ac168f52b6a6e3297a9cc3eb579f047f4 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Mon, 16 Dec 2019 21:03:18 -0600 Subject: [PATCH] [Attributor][NFC] Clang format the Attributor The Attributor is always kept formatted so diffs are cleaner. Sometime we get out of sync for various reasons so we need to format the file once in a while. --- llvm/lib/Transforms/IPO/Attributor.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 11f2f5c..846af42 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -2098,9 +2098,7 @@ struct AAReachabilityImpl : AAReachability { } /// See AbstractAttribute::initialize(...). - void initialize(Attributor &A) override { - indicatePessimisticFixpoint(); - } + void initialize(Attributor &A) override { indicatePessimisticFixpoint(); } /// See AbstractAttribute::updateImpl(...). ChangeStatus updateImpl(Attributor &A) override { @@ -2579,12 +2577,14 @@ struct AAIsDeadFunction : public AAIsDead { CI->takeName(II); replaceAllInstructionUsesWith(*II, *CI); - // If this is a nounwind + mayreturn invoke we only remove the unwind edge. - // This is done by moving the invoke into a new and dead block and connecting - // the normal destination of the invoke with a branch that follows the call - // replacement we created above. + // If this is a nounwind + mayreturn invoke we only remove the + // unwind edge. This is done by moving the invoke into a new and + // dead block and connecting the normal destination of the invoke + // with a branch that follows the call replacement we created + // above. if (MayReturn) { - BasicBlock *NewDeadBB = SplitBlock(BB, II, nullptr, nullptr, nullptr, ".i2c"); + BasicBlock *NewDeadBB = + SplitBlock(BB, II, nullptr, nullptr, nullptr, ".i2c"); assert(isa(BB->getTerminator()) && BB->getTerminator()->getNumSuccessors() == 1 && BB->getTerminator()->getSuccessor(0) == NewDeadBB); @@ -5717,9 +5717,9 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const IRPosition &Pos) { } template -raw_ostream &llvm:: -operator<<(raw_ostream &OS, - const IntegerStateBase &S) { +raw_ostream & +llvm::operator<<(raw_ostream &OS, + const IntegerStateBase &S) { return OS << "(" << S.getKnown() << "-" << S.getAssumed() << ")" << static_cast(S); } -- 2.7.4