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

Commit 48d9493

Browse files
dotdashalexcrichton
authored andcommitted
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 9c275fd commit 48d9493

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/IR/LegacyPassManager.cpp

-3
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)