diff options
| author | Johannes Doerfert <johannes@jdoerfert.de> | 2019-10-31 19:45:06 -0500 |
|---|---|---|
| committer | Johannes Doerfert <johannes@jdoerfert.de> | 2019-11-02 00:25:46 -0500 |
| commit | 0c7d4d7f3e26bed39ee4e2817ca5078ab111c05c (patch) | |
| tree | 8618c911df9c332e5e43c15fa4e02280df4b2823 /llvm/lib | |
| parent | 02728f49da7b0284c3b06abade7ad0e17ee8d224 (diff) | |
| download | bcm5719-llvm-0c7d4d7f3e26bed39ee4e2817ca5078ab111c05c.tar.gz bcm5719-llvm-0c7d4d7f3e26bed39ee4e2817ca5078ab111c05c.zip | |
[Attributor][NFCI] Remove obsolete code
The code in question does not add anything as the class is a subclass of
AACallSiteReturnedFromReturnedAndMustBeExecutedContext already.
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/IPO/Attributor.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 6589b16348f..a0677c194f1 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -2890,30 +2890,6 @@ struct AADereferenceableCallSiteReturned final AADereferenceable, AADereferenceableImpl>; AADereferenceableCallSiteReturned(const IRPosition &IRP) : Base(IRP) {} - /// See AbstractAttribute::initialize(...). - void initialize(Attributor &A) override { - Base::initialize(A); - Function *F = getAssociatedFunction(); - if (!F) - indicatePessimisticFixpoint(); - } - - /// See AbstractAttribute::updateImpl(...). - ChangeStatus updateImpl(Attributor &A) override { - // TODO: Once we have call site specific value information we can provide - // call site specific liveness information and then it makes - // sense to specialize attributes for call sites arguments instead of - // redirecting requests to the callee argument. - - ChangeStatus Change = Base::updateImpl(A); - Function *F = getAssociatedFunction(); - const IRPosition &FnPos = IRPosition::returned(*F); - auto &FnAA = A.getAAFor<AADereferenceable>(*this, FnPos); - return Change | - clampStateAndIndicateChange( - getState(), static_cast<const DerefState &>(FnAA.getState())); - } - /// See AbstractAttribute::trackStatistics() void trackStatistics() const override { STATS_DECLTRACK_CS_ATTR(dereferenceable); |

