This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix mishandling array allocations when promoting alloca
ClosedPublic

Authored by arsenm on Apr 26 2016, 3:24 PM.

Details

Reviewers
tstellarAMD
Summary

The canonical form for allocas is a single allocation of the array type.
In case we see a non-canonical array alloca, make sure we aren't
replacing this with an array N times smaller.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 55107.Apr 26 2016, 3:24 PM
arsenm retitled this revision from to AMDGPU: Fix mishandling array allocations when promoting alloca.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
arsenm updated this revision to Diff 55336.Apr 27 2016, 3:09 PM

Add test updates

tstellarAMD accepted this revision.Apr 28 2016, 8:31 AM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Apr 28 2016, 8:31 AM
arsenm closed this revision.Apr 28 2016, 11:48 AM

r267916