This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Don't unpack arrays that are too large
ClosedPublic

Authored by davide on Oct 7 2016, 12:20 PM.

Details

Summary

https://reviews.llvm.org/D15890 introduces a transformation to unpack arrays. This unfortunately causes some fundamental compile time regression, so, let's set a limit on the max size of array we consider for unpacking. Fixes https://llvm.org/bugs/show_bug.cgi?id=30608

Diff Detail

Repository
rL LLVM

Event Timeline

davide updated this revision to Diff 73965.Oct 7 2016, 12:20 PM
davide retitled this revision from to [InstCombine] Don't unpack arrays that are too large.
davide updated this object.
davide added reviewers: majnemer, deadalnix.
davide added a subscriber: llvm-commits.

Side note: I'm in general not a huge fan of threshold-based optimisations, but I wasn't able to think of a better solution for now.

majnemer accepted this revision.Oct 7 2016, 1:58 PM
majnemer edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 7 2016, 1:58 PM

I think we need the same check in unpackStoreToAggregate

This revision was automatically updated to reflect the committed changes.
davide added a comment.Oct 7 2016, 2:07 PM

I think we need the same check in unpackStoreToAggregate

Oh, sure. Submitting another patch soon.