This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Avoid unnecessary work for seen dependencies
Needs ReviewPublic

Authored by jansvoboda11 on Aug 3 2023, 4:22 PM.

Details

Reviewers
benlangmuir
Summary

Modular dependencies the client has already seen don't need to be reported again. This patch leverages that to skip somewhat expensive computation: generating the full command line and collecting the full set of file dependencies. Everything else is necessary for computation of the canonical context hash, which we cannot skip.

Diff Detail

Event Timeline

jansvoboda11 created this revision.Aug 3 2023, 4:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2023, 4:22 PM
Herald added a subscriber: ributzka. · View Herald Transcript
jansvoboda11 requested review of this revision.Aug 3 2023, 4:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2023, 4:22 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript