Both doInitialize and runOnModule were running the entire analysis
due to the actual work being done in the constructor. Strip it out here
and only get the similarity during runOnModule.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I don't think anything in future patches uses the constructor either so should be ok.
Besides the comment, this looks fine to me, but I would like one of the other reviewers to look at it since I'm still fairly new to LLVM developer community.
llvm/lib/Analysis/IRSimilarityIdentifier.cpp | ||
---|---|---|
903–904 | We can get rid of/change this comment now. |
We can get rid of/change this comment now.