This is an archive of the discontinued LLVM Phabricator instance.

[OpenMPOpt][WIP][NOT-FOR-REVIEW] Track an ICV that determines if we are in a SPMD GPU region
Needs ReviewPublic

Authored by jdoerfert on Aug 10 2020, 7:24 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary
NOTE: This is a draft.

We can use the new ICV tacking to do fancy optimiztions w/o much effort.
This adds all the machinery to track if we are in an "SPMD region" or
not. The corresponding getter is replaced accordingly, which can easily
result in significant performance boosts. As the ICV tacking is still a
bit in flux, we'll wait till there are a few more pieces in place. Then
we'll add tests to this and review it properly.

Diff Detail