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

Commit f8fee4a

Browse files
dotdashalexcrichton
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 f7e6a49 commit f8fee4a

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
@@ -722,9 +722,6 @@ const PassInfo *PMTopLevelManager::findAnalysisPassInfo(AnalysisID AID) const {
722722
const PassInfo *&PI = AnalysisPassInfos[AID];
723723
if (!PI)
724724
PI = PassRegistry::getPassRegistry()->getPassInfo(AID);
725-
else
726-
assert(PI == PassRegistry::getPassRegistry()->getPassInfo(AID) &&
727-
"The pass info pointer changed for an analysis ID!");
728725

729726
return PI;
730727
}

0 commit comments

Comments
 (0)