This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Use module flag metadata to enable global-merge.
Needs ReviewPublic

Authored by ab on Feb 27 2015, 6:55 PM.

Details

Summary

This lets clang pick, in LTO, whether to enable or not the pass.

Uses the metadata emitted by http://reviews.llvm.org/D7968

Also, the -enable-global-merge flag overrides the module flag.

-Ahmed

Diff Detail

Event Timeline

ab updated this revision to Diff 20926.Feb 27 2015, 6:55 PM
ab retitled this revision from to [CodeGen] Use module flag metadata to enable global-merge..
ab updated this object.
ab edited the test plan for this revision. (Show Details)
ab added a reviewer: dexonsmith.
ab added a subscriber: Unknown Object (MLST).
ab added a reviewer: ahatanak.Feb 27 2015, 7:02 PM
ab planned changes to this revision.Mar 2 2015, 11:03 AM
ab updated this revision to Diff 21061.Mar 2 2015, 4:13 PM
  • Match D7968 changes (i32, "Global Merge")
dexonsmith resigned from this revision.Oct 6 2020, 3:36 PM