diff options
| author | Stefan Stipanovic <sstipanovic@s-energize.com> | 2019-08-03 15:27:41 +0000 |
|---|---|---|
| committer | Stefan Stipanovic <sstipanovic@s-energize.com> | 2019-08-03 15:27:41 +0000 |
| commit | 7849e4163583288ea53837a4e463af472bfe5f02 (patch) | |
| tree | f1053318543c586d6574c1e8014bc0a44e0eb3cb | |
| parent | f5c40cb9002a7cbddec66dc4b440525ae1f14751 (diff) | |
| download | bcm5719-llvm-7849e4163583288ea53837a4e463af472bfe5f02.tar.gz bcm5719-llvm-7849e4163583288ea53837a4e463af472bfe5f02.zip | |
[Attributor][NFC] run clang-format on Attributor.cpp
llvm-svn: 367757
| -rw-r--r-- | llvm/lib/Transforms/IPO/Attributor.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 4a30859f54d..803152ef812 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/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<Value *> getAssumedUniqueReturnValue(const AAIsDead *LivenessAA) const; + Optional<Value *> + getAssumedUniqueReturnValue(const AAIsDead *LivenessAA) const; /// See AbstractState::checkForallReturnedValues(...). bool checkForallReturnedValues( @@ -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 && @@ -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. |

