1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[Attributor][NFC] run clang-format on Attributor.cpp

llvm-svn: 367757
This commit is contained in:
Stefan Stipanovic 2019-08-03 15:27:41 +00:00
parent 30dd62db8c
commit 3319079fca

View File

@ -607,7 +607,8 @@ public:
/// Return an assumed unique return value if a single candidate is found. If /// 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 /// there cannot be one, return a nullptr. If it is not clear yet, return the
/// Optional::NoneType. /// Optional::NoneType.
Optional<Value *> getAssumedUniqueReturnValue(const AAIsDead *LivenessAA) const; Optional<Value *>
getAssumedUniqueReturnValue(const AAIsDead *LivenessAA) const;
/// See AbstractState::checkForallReturnedValues(...). /// See AbstractState::checkForallReturnedValues(...).
bool checkForallReturnedValues( bool checkForallReturnedValues(
@ -678,7 +679,6 @@ Optional<Value *> AAReturnedValuesImpl::getAssumedUniqueReturnValue(
std::function<bool(Value &, const SmallPtrSetImpl<ReturnInst *> &)> Pred = std::function<bool(Value &, const SmallPtrSetImpl<ReturnInst *> &)> Pred =
[&](Value &RV, const SmallPtrSetImpl<ReturnInst *> &RetInsts) -> bool { [&](Value &RV, const SmallPtrSetImpl<ReturnInst *> &RetInsts) -> bool {
// If all ReturnInsts are dead, then ReturnValue is dead as well // If all ReturnInsts are dead, then ReturnValue is dead as well
// and can be ignored. // and can be ignored.
if (LivenessAA && if (LivenessAA &&
@ -754,7 +754,8 @@ ChangeStatus AAReturnedValuesImpl::updateImpl(Attributor &A) {
Value *RV = It.first; Value *RV = It.first;
// Ignore dead ReturnValues. // Ignore dead ReturnValues.
if (LivenessAA && !LivenessAA->isLiveInstSet(ReturnInsts.begin(), ReturnInsts.end())) if (LivenessAA &&
!LivenessAA->isLiveInstSet(ReturnInsts.begin(), ReturnInsts.end()))
continue; continue;
LLVM_DEBUG(dbgs() << "[AAReturnedValues] Potentially returned value " << *RV LLVM_DEBUG(dbgs() << "[AAReturnedValues] Potentially returned value " << *RV
@ -1615,7 +1616,7 @@ struct AAIsDeadFunction : AAIsDead, BooleanState {
assert(I->getParent()->getParent() == &getAnchorScope() && assert(I->getParent()->getParent() == &getAnchorScope() &&
"Instruction must be in the same anchor scope function."); "Instruction must be in the same anchor scope function.");
if(!getAssumed()) if (!getAssumed())
return false; return false;
// If it is not in AssumedLiveBlocks then it for sure dead. // If it is not in AssumedLiveBlocks then it for sure dead.