HomePhabricator

[hip] Remove the coercion on aggregate kernel arguments.

Authored by hliao on Tue, Nov 10, 6:34 AM.

Description

[hip] Remove the coercion on aggregate kernel arguments.

  • If an aggregate argument is indirectly accessed within kernels, direct passing results in unpromotable alloca, which degrade performance significantly. InferAddrSpace pass is enhanced in D91121 to take the assumption that generic pointers loaded from the constant memory could be regarded global ones. The need for the coercion on aggregate arguments is mitigated.

Differential Revision: https://reviews.llvm.org/D89980

Details

Committed
hliaoThu, Nov 12, 6:19 PM
Differential Revision
D89980: [hip] Remove the coercion on aggregate kernel arguments.
Parents
rG243511a24e5a: [Polly] Fix memory leak.
Branches
Unknown
Tags
Unknown