This fixes CodeGen/available-externally-suppress.c when the new pass manager is turned on by default. available_externally was not emitted during -O2 -flto runs when it should still be retained for link time inlining purposes. This can be fixed by checking that we aren't LTOPrelinking when adding the EliminateAvailableExternallyPass.
Details
Details
- Reviewers
chandlerc phosek echristo serge-sans-paille - Commits
- rL363971: [clang][NewPM] Do not eliminate available_externally durng `-O2 -flto` runs
rG97dc622ab3f7: [clang][NewPM] Do not eliminate available_externally durng `-O2 -flto` runs
rC363971: [clang][NewPM] Do not eliminate available_externally durng `-O2 -flto` runs
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, again, really nice. Tiny tweak below.
llvm/test/Other/available-externally-lto.ll | ||
---|---|---|
2 | Wrap to 80-columns? |
Wrap to 80-columns?