diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h --- a/llvm/include/llvm/Transforms/IPO/Attributor.h +++ b/llvm/include/llvm/Transforms/IPO/Attributor.h @@ -702,21 +702,21 @@ }; struct AAIsAssumedDead : public AbstractAttribute { - /// An abstract interface for liveness abstract attribute. - AAIsAssumedDead(Value &V, InformationCache &InfoCache) - : AbstractAttribute(V, InfoCache) {} + /// An abstract interface for liveness abstract attribute. + AAIsAssumedDead(Value &V, InformationCache &InfoCache) + : AbstractAttribute(V, InfoCache) {} - /// See AbstractAttribute::getAttrKind()/ - virtual Attribute::AttrKind getAttrKind() const override { return ID; } + /// See AbstractAttribute::getAttrKind()/ + virtual Attribute::AttrKind getAttrKind() const override { return ID; } - static constexpr Attribute::AttrKind ID = - Attribute::AttrKind(Attribute::None + 1); + static constexpr Attribute::AttrKind ID = + Attribute::AttrKind(Attribute::None + 1); - /// Returns true if nounwind is assumed. - virtual bool isAssumedDead() const = 0; + /// Returns true if nounwind is assumed. + virtual bool isAssumedDead() const = 0; - /// Returns true if nounwind is known. - virtual bool isKnownDead() const = 0; + /// Returns true if nounwind is known. + virtual bool isKnownDead() const = 0; }; } // end namespace llvm diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -1252,9 +1252,6 @@ Function &F, InformationCache &InfoCache, DenseSet *Whitelist) { - // Check for dead code in every function. - registerAA(*new AAIsAssumedDeadFunction(F, InfoCache)); - // Return attributes are only appropriate if the return type is non void. Type *ReturnType = F.getReturnType(); if (!ReturnType->isVoidTy()) {