We're running into undefined references using ThinLTO with -O0 on
Windows/Chrome. This fixes that.
This matches the legacy PM.
Differential D97414
[ThinLTO][NewPM] Clean up dead code under -O0 aeubanks on Feb 24 2021, 1:40 PM. Authored by
Details We're running into undefined references using ThinLTO with -O0 on This matches the legacy PM.
Diff Detail
Event Timeline
Comment Actions lgtm
|
Looking at the old PM, we also call:
MPM.add(createLowerTypeTestsPass(nullptr, nullptr, true));
to drop any leftover type tests. Thinking that should probably get added here too (it's normally done below in the ModuleSimplificationPipeline, but of course that doesn't get reached for O0).