This is an archive of the discontinued LLVM Phabricator instance.

Enable ODR uniquing of DITypes in more places
ClosedPublic

Authored by tejohnson on Apr 19 2016, 8:30 AM.

Details

Summary

This is a follow-on to apply Duncan's new DIType ODR uniquing from
r266549 and r266713 in more places.

Enable enableDebugTypeODRUniquing() for ThinLTO backends invoked via
libLTO, similar to the way r266549 enabled this for ThinLTO backend
threads launched from gold-plugin.

Also enable enableDebugTypeODRUniquing in opt, similar to the way
r266549 enabled this for llvm-link (on by default, can be disabled with
new -disable-debug-info-type-map option), since we may perform ThinLTO
importing from opt.

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson updated this revision to Diff 54197.Apr 19 2016, 8:30 AM
tejohnson retitled this revision from to Enable ODR uniquing of DITypes in more places.
tejohnson updated this object.
tejohnson added reviewers: dexonsmith, mehdi_amini.
tejohnson added a subscriber: llvm-commits.
mehdi_amini added inline comments.Apr 19 2016, 8:37 AM
lib/LTO/ThinLTOCodeGenerator.cpp
524 ↗(On Diff #54197)

This is the "CodeGen only" loop, won't import anything I don't think it matters here, but see below.

577–578 ↗(On Diff #54197)

Here instead?

tejohnson added inline comments.Apr 19 2016, 8:41 AM
lib/LTO/ThinLTOCodeGenerator.cpp
577–578 ↗(On Diff #54197)

Ack, yes, it should be here. Will move down here and retest before committing.

This revision was automatically updated to reflect the committed changes.