This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Change AAExecutionDomain to check intrinsic edges
ClosedPublic

Authored by jhuber6 on Sep 15 2021, 1:25 PM.

Details

Summary

The AAExecutionDomain instance checks if a BB is executed by the main
thread only. Currently, this only checks the __kmpc_kernel_init call
for generic regions to indicate the path taken by the main thread. In
the new runtime, we want to be able to detect basic blocks even in SPMD
mode. For this we enable it to check thread-ID intrinsics being compared
to zero as well.

Diff Detail

Event Timeline

jhuber6 created this revision.Sep 15 2021, 1:25 PM
jhuber6 requested review of this revision.Sep 15 2021, 1:25 PM
Herald added a reviewer: baziotis. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
jhuber6 updated this revision to Diff 372813.Sep 15 2021, 3:05 PM

Removing leftover debug message.

This revision is now accepted and ready to land.Sep 17 2021, 12:57 PM
This revision was landed with ongoing or failed builds.Sep 17 2021, 4:51 PM
This revision was automatically updated to reflect the committed changes.