Skip to content

Commit

Permalink
[Attributor][NFC] Minor code cleanups to minimize follow up diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdoerfert committed May 6, 2020
1 parent 094137a commit 0cc9c02
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Expand Up @@ -5617,7 +5617,6 @@ struct AAMemoryBehaviorCallSiteArgument final : AAMemoryBehaviorArgument {
removeKnownBits(NO_READS);
removeAssumedBits(NO_READS);
}
} else {
}
AAMemoryBehaviorArgument::initialize(A);
}
Expand Down Expand Up @@ -5701,8 +5700,10 @@ struct AAMemoryBehaviorCallSite final : AAMemoryBehaviorImpl {
void initialize(Attributor &A) override {
AAMemoryBehaviorImpl::initialize(A);
Function *F = getAssociatedFunction();
if (!F || !A.isFunctionIPOAmendable(*F))
if (!F || !A.isFunctionIPOAmendable(*F)) {
indicatePessimisticFixpoint();
return;
}
}

/// See AbstractAttribute::updateImpl(...).
Expand Down Expand Up @@ -6400,8 +6401,10 @@ struct AAMemoryLocationCallSite final : AAMemoryLocationImpl {
void initialize(Attributor &A) override {
AAMemoryLocationImpl::initialize(A);
Function *F = getAssociatedFunction();
if (!F || !A.isFunctionIPOAmendable(*F))
if (!F || !A.isFunctionIPOAmendable(*F)) {
indicatePessimisticFixpoint();
return;
}
}

/// See AbstractAttribute::updateImpl(...).
Expand Down

0 comments on commit 0cc9c02

Please sign in to comment.