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

Commit 318ccee

Browse files
dotdasharielb1
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 9ddb3bf commit 318ccee

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

727724
return PI;
728725
}

0 commit comments

Comments
 (0)