This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] deal with all aggregate return types.
ClosedPublic

Authored by tra on Jul 19 2016, 11:56 AM.

Details

Summary

Fixes a crash in llvm_unreachable when a function has array return type.

Diff Detail

Event Timeline

tra updated this revision to Diff 64533.Jul 19 2016, 11:56 AM
tra retitled this revision from to [NVPTX] deal with all aggregate return types..
tra updated this object.
tra added reviewers: jlebar, jholewinski.
tra added a subscriber: llvm-commits.
tra updated this revision to Diff 64539.Jul 19 2016, 12:16 PM

renamed vector-return.ll -> aggregate-return.ll and added tests for array and structure return types.

jlebar accepted this revision.Jul 19 2016, 1:34 PM
jlebar edited edge metadata.
jlebar added inline comments.
test/CodeGen/NVPTX/aggregate-return.ll
10

Do we need this line? Same below.

This revision is now accepted and ready to land.Jul 19 2016, 1:34 PM
tra updated this revision to Diff 64614.Jul 19 2016, 5:09 PM
tra edited edge metadata.

Removed unneeded entry label and fixed names of patterns in the last test.

This revision was automatically updated to reflect the committed changes.
test/CodeGen/NVPTX/aggregate-return.ll