This patch avoid minimizing input files that contributed to a PCH or its modules. This prevents the implicit modular build to fail on unexpected file size. Depends on D106146.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
I run a quick benchmark where an empty TU is configured with an explicitly built PCH that imports Cocoa. Dependency scanning without minimization takes 226 ms, with this patch 303 ms and 325 ms when padding minimized files to the original size. Since we'll eventually switch to a more sound implementation, I'm fine with this in the meantime.
Comment Actions
Looks like this breaks tests on Windows: http://45.33.8.238/win/42264/step_7.txt
Please take a look, and revert for now if it takes a while to fix.
Comment Actions
Thanks, that was a bad rebase. Should be fixed in c94a345a5c693b6c12a41e8f50e3fe96d1311991.