From c43c9bc652631bd82b5535e8c029b0ac8d7d5895 Mon Sep 17 00:00:00 2001 From: Stefan Stipanovic Date: Sat, 3 Aug 2019 15:27:41 +0000 Subject: [PATCH] [Attributor][NFC] run clang-format on Attributor.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367757 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/Attributor.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Transforms/IPO/Attributor.cpp b/lib/Transforms/IPO/Attributor.cpp index 4a30859f54d..803152ef812 100644 --- a/lib/Transforms/IPO/Attributor.cpp +++ b/lib/Transforms/IPO/Attributor.cpp @@ -607,7 +607,8 @@ public: /// Return an assumed unique return value if a single candidate is found. If /// there cannot be one, return a nullptr. If it is not clear yet, return the /// Optional::NoneType. - Optional getAssumedUniqueReturnValue(const AAIsDead *LivenessAA) const; + Optional + getAssumedUniqueReturnValue(const AAIsDead *LivenessAA) const; /// See AbstractState::checkForallReturnedValues(...). bool checkForallReturnedValues( @@ -678,7 +679,6 @@ Optional AAReturnedValuesImpl::getAssumedUniqueReturnValue( std::function &)> Pred = [&](Value &RV, const SmallPtrSetImpl &RetInsts) -> bool { - // If all ReturnInsts are dead, then ReturnValue is dead as well // and can be ignored. if (LivenessAA && @@ -754,7 +754,8 @@ ChangeStatus AAReturnedValuesImpl::updateImpl(Attributor &A) { Value *RV = It.first; // Ignore dead ReturnValues. - if (LivenessAA && !LivenessAA->isLiveInstSet(ReturnInsts.begin(), ReturnInsts.end())) + if (LivenessAA && + !LivenessAA->isLiveInstSet(ReturnInsts.begin(), ReturnInsts.end())) continue; LLVM_DEBUG(dbgs() << "[AAReturnedValues] Potentially returned value " << *RV @@ -1615,7 +1616,7 @@ struct AAIsDeadFunction : AAIsDead, BooleanState { assert(I->getParent()->getParent() == &getAnchorScope() && "Instruction must be in the same anchor scope function."); - if(!getAssumed()) + if (!getAssumed()) return false; // If it is not in AssumedLiveBlocks then it for sure dead. -- 2.40.0