This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Remove dead check in AMDGPUPromoteAlloca
ClosedPublic

Authored by arsenm on Jul 13 2016, 2:19 PM.

Details

Reviewers
tstellarAMD
Summary

This is currently only called with GEP users. A direct
alloca would only happen with current typed pointers
for arrays which are a perverse case.

Also fix crashes on 0 x and 1 x arrays.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 63859.Jul 13 2016, 2:19 PM
arsenm retitled this revision from to AMDGPU: Remove dead check in AMDGPUPromoteAlloca.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
arsenm updated this object.Jul 13 2016, 2:22 PM
tstellarAMD accepted this revision.Jul 18 2016, 7:00 AM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jul 18 2016, 7:00 AM
arsenm closed this revision.Jul 18 2016, 11:45 AM

r275869