Skip to content

Commit

Permalink
[Attributor][NFCI] No repeated manifest of AAValueSimplifyReturned (C…
Browse files Browse the repository at this point in the history
…GSCC)
  • Loading branch information
jdoerfert committed Mar 7, 2022
1 parent efedf70 commit 6158f4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions llvm/lib/Transforms/IPO/AttributorAttributes.cpp
Expand Up @@ -5548,6 +5548,11 @@ struct AAValueSimplifyReturned : AAValueSimplifyImpl {

ChangeStatus manifest(Attributor &A) override {
ChangeStatus Changed = ChangeStatus::UNCHANGED;
if (!A.isRunOn(*getAnchorScope()))
return Changed;

assert(!hasCallBaseContext() && "Should never manifest a simplified "
"function return with call base context!");

if (auto *NewV = getReplacementValue(A)) {
auto PredForReturned =
Expand Down

0 comments on commit 6158f4a

Please sign in to comment.