This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix crashes on unknown processor name
ClosedPublic

Authored by arsenm on Jun 1 2016, 6:41 PM.

Details

Reviewers
tstellarAMD
Summary

If the processor name failed to parse for amdgcn,
the resulting output would have R600 ISA in it.

If the processor name was missing or invalid for R600,
the wavefront size would not be set and there would be
crashes from missing itinerary data.

Fixes crashes in future commit caused by dividing by the unset/0
wavefront size.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 59329.Jun 1 2016, 6:41 PM
arsenm retitled this revision from to AMDGPU: Fix crashes on unknown processor name.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
tstellarAMD accepted this revision.Jun 2 2016, 8:48 AM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jun 2 2016, 8:48 AM
arsenm closed this revision.Jun 2 2016, 11:44 AM

r271561