This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Add compile time hack for hasCFUser
ClosedPublic

Authored by arsenm on Feb 6 2020, 9:13 AM.

Details

Summary

Assume the control flow intrinsic results are never casted, and early
exit based on the type.

Diff Detail

Event Timeline

arsenm created this revision.Feb 6 2020, 9:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 6 2020, 9:13 AM
hliao requested changes to this revision.Feb 6 2020, 9:26 AM

look reasonable for me. any test cases?

This revision now requires changes to proceed.Feb 6 2020, 9:26 AM
arsenm added a comment.Feb 6 2020, 9:28 AM

look reasonable for me. any test cases?

It's compile time. The broken case would probably successfully compile anyway, since we aren't really fully dependent on the DAG divergence

hliao accepted this revision.Feb 6 2020, 9:44 AM

LGTM

This revision is now accepted and ready to land.Feb 6 2020, 9:44 AM