Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 989c738

Browse files
dotdashpftbest
authored andcommitted
Disable the PassInfo cache assertions to make the cache effective in builds with assertions enabld
Since the PassInfo cache does a regular, uncached, slow lookup for the asserted condition, it's not very effective *cough* when assertions are enabled. Since disabling these assertions gives quite a nice perf boost and it's not really worse than the patch we had previously, let's just do that.
1 parent 707f677 commit 989c738

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/IR/LegacyPassManager.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,9 +724,6 @@ const PassInfo *PMTopLevelManager::findAnalysisPassInfo(AnalysisID AID) const {
724724
const PassInfo *&PI = AnalysisPassInfos[AID];
725725
if (!PI)
726726
PI = PassRegistry::getPassRegistry()->getPassInfo(AID);
727-
else
728-
assert(PI == PassRegistry::getPassRegistry()->getPassInfo(AID) &&
729-
"The pass info pointer changed for an analysis ID!");
730727

731728
return PI;
732729
}

0 commit comments

Comments
 (0)