This is an archive of the discontinued LLVM Phabricator instance.

[GPGPU] Make sure managed arrays are prepared at the beginning of the scop
ClosedPublic

Authored by grosser on Aug 6 2017, 3:04 AM.

Details

Summary

This resolves some "instruction does not dominate use" errors, as we used to
prepare the arrays at the location of the first kernel, which not necessarily
dominated all other kernel calls.

Diff Detail

Repository
rL LLVM

Event Timeline

grosser created this revision.Aug 6 2017, 3:04 AM
bollu edited edge metadata.Aug 6 2017, 4:06 AM

LGTM. I wish there was a simpler test case, but I can understand how it maybe hard to reduce it further.

lib/CodeGen/PPCGCodeGeneration.cpp
790 ↗(On Diff #109912)

Nit: Devise -> Device. most only be... -> must only be....

This revision was automatically updated to reflect the committed changes.