Skip to content

Commit

Permalink
[Attributor][NFC] run clang-format on Attributor.cpp
Browse files Browse the repository at this point in the history
llvm-svn: 367757
  • Loading branch information
sstefan1 committed Aug 3, 2019
1 parent f5c40cb commit 7849e41
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions llvm/lib/Transforms/IPO/Attributor.cpp
Expand Up @@ -607,7 +607,8 @@ class AAReturnedValuesImpl final : public AAReturnedValues, AbstractState {
/// 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<Value *> getAssumedUniqueReturnValue(const AAIsDead *LivenessAA) const;
Optional<Value *>
getAssumedUniqueReturnValue(const AAIsDead *LivenessAA) const;

/// See AbstractState::checkForallReturnedValues(...).
bool checkForallReturnedValues(
Expand Down Expand Up @@ -678,7 +679,6 @@ Optional<Value *> AAReturnedValuesImpl::getAssumedUniqueReturnValue(

std::function<bool(Value &, const SmallPtrSetImpl<ReturnInst *> &)> Pred =
[&](Value &RV, const SmallPtrSetImpl<ReturnInst *> &RetInsts) -> bool {

// If all ReturnInsts are dead, then ReturnValue is dead as well
// and can be ignored.
if (LivenessAA &&
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 7849e41

Please sign in to comment.