This is an archive of the discontinued LLVM Phabricator instance.

GlobalOpt does not treat externally_initialized globals correctly
ClosedPublic

Authored by olista01 on Oct 1 2015, 5:51 AM.

Details

Reviewers
olista01
Summary

GlobalOpt currently merges stores into the initialisers of internal, externally_initialized globals, but should not do so as the value of the global may change between the initialiser and any code in the module being run.

Diff Detail

Event Timeline

olista01 updated this revision to Diff 36232.Oct 1 2015, 5:51 AM
olista01 retitled this revision from to GlobalOpt does not treat externally_initialized globals correctly.
olista01 updated this object.
olista01 set the repository for this revision to rL LLVM.
olista01 added a subscriber: llvm-commits.
olista01 accepted this revision.Oct 12 2015, 6:23 AM
olista01 added a reviewer: olista01.

Accepted by James Molloy on the mailing list.

This revision is now accepted and ready to land.Oct 12 2015, 6:23 AM
olista01 closed this revision.Oct 12 2015, 6:23 AM

Committed revision 250035.