mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[PM] Remove a pointless optimization.
There is no need to do this within an analysis. That method shouldn't even be reached if this predicate holds as the actual useful optimization is in the analysis manager itself. llvm-svn: 290614
This commit is contained in:
parent
93ef7f9c97
commit
57ab1e6b3b
@ -72,9 +72,6 @@ AAResults::~AAResults() {
|
||||
|
||||
bool AAResults::invalidate(Function &F, const PreservedAnalyses &PA,
|
||||
FunctionAnalysisManager::Invalidator &Inv) {
|
||||
if (PA.areAllPreserved())
|
||||
return false; // Nothing to do, everything is still valid.
|
||||
|
||||
// Check if the AA manager itself has been invalidated.
|
||||
auto PAC = PA.getChecker<AAManager>();
|
||||
if (!PAC.preserved() && !PAC.preservedSet<AllAnalysesOn<Function>>())
|
||||
|
@ -65,9 +65,6 @@ static const unsigned MaxLookupSearchDepth = 6;
|
||||
|
||||
bool BasicAAResult::invalidate(Function &F, const PreservedAnalyses &PA,
|
||||
FunctionAnalysisManager::Invalidator &Inv) {
|
||||
if (PA.areAllPreserved())
|
||||
return false; // Nothing to do, everything is still valid.
|
||||
|
||||
// We don't care if this analysis itself is preserved, it has no state. But
|
||||
// we need to check that the analyses it depends on have been. Note that we
|
||||
// may be created without handles to some analyses and in that case don't
|
||||
|
Loading…
Reference in New Issue
Block a user