This is an archive of the discontinued LLVM Phabricator instance.

[CUDA, test-suite] Prevent constant folding of the test inputs.
AcceptedPublic

Authored by tra on Aug 5 2020, 12:44 PM.

Details

Reviewers
jlebar
Summary

We want to codegen the code and verify that it actually executes correctly on the GPU.
Passing constand input args via a volatile temporary ensures that the function call is not collapsed.

Event Timeline

tra created this revision.Aug 5 2020, 12:44 PM
tra requested review of this revision.Aug 5 2020, 12:44 PM
jlebar accepted this revision.Aug 5 2020, 12:58 PM
This revision is now accepted and ready to land.Aug 5 2020, 12:58 PM