Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ceed850

Browse files
dotdashalexcrichton
authored andcommittedAug 15, 2017
GH #34: 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 5690968 commit ceed850

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
@@ -726,9 +726,6 @@ const PassInfo *PMTopLevelManager::findAnalysisPassInfo(AnalysisID AID) const {
726726
const PassInfo *&PI = AnalysisPassInfos[AID];
727727
if (!PI)
728728
PI = PassRegistry::getPassRegistry()->getPassInfo(AID);
729-
else
730-
assert(PI == PassRegistry::getPassRegistry()->getPassInfo(AID) &&
731-
"The pass info pointer changed for an analysis ID!");
732729

733730
return PI;
734731
}

0 commit comments

Comments
 (0)
This repository has been archived.