This is an archive of the discontinued LLVM Phabricator instance.

[LTO] Don't create a new common unless merged has different size
ClosedPublic

Authored by tejohnson on Aug 26 2016, 9:22 PM.

Details

Summary

This addresses a regression in common handling from the new LTO
API in r278338. Only create a new common if the size is different.
The type comparison against an array type fails when the size is
different but not an array. GlobalMerge does not handle the
array types as well and we lose some global merging opportunities.

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson updated this revision to Diff 69470.Aug 26 2016, 9:22 PM
tejohnson retitled this revision from to [LTO] Don't create a new common unless merged has different size.
tejohnson updated this object.
tejohnson added a reviewer: mehdi_amini.
tejohnson added subscribers: llvm-commits, junbuml.
mehdi_amini accepted this revision.Aug 26 2016, 9:39 PM
mehdi_amini edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Aug 26 2016, 9:39 PM
This revision was automatically updated to reflect the committed changes.