This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Temporarily select trap to s_endpgm
ClosedPublic

Authored by arsenm on Jun 9 2016, 7:21 PM.

Details

Summary

This should select to s_trap, but that requires
additonal work to setup and enable the trap handler.
For now emit s_endpgm so bugpoint stops getting stuck
on the unsupported call to abort.

Emit a warning that this will only terminate the wave and
not really trap.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 60304.Jun 9 2016, 7:21 PM
arsenm retitled this revision from to AMDGPU: Temporarily select trap to s_endpgm.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
nhaehnle accepted this revision.Jun 10 2016, 4:04 AM
nhaehnle added a reviewer: nhaehnle.
nhaehnle added a subscriber: nhaehnle.

LGTM

lib/Target/AMDGPU/SIISelLowering.cpp
1434

Trivial interaction with your control flow patch.

This revision is now accepted and ready to land.Jun 10 2016, 4:04 AM
arsenm closed this revision.Jun 17 2016, 3:34 PM

r273062