[PATCH] D118084: [CUDA, NVPTX] Pass byval aggregates directly

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 26 11:34:26 PST 2022


tra added a comment.

In D118084#3272154 <https://reviews.llvm.org/D118084#3272154>, @lebedev.ri wrote:

> My last idea was about allowing splitting
>
>   struct {
>     int a;
>     int b[2];
>   } a;
>
> into
>
>   // not in a struct anymore!
>   int a;
>   int b[2]

This looks like it's a somewhat different problem.

In my case this is what bites me: https://godbolt.org/z/x9bWjePGY
It's a variant of this issue: https://github.com/llvm/llvm-project/issues/51734

I have a WIP patch that converts a GEP with a dynamic index with a known range of values into a series of comparisons and fixed-index GEPs. I guess I'll need to get it sorted out first.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118084/new/

https://reviews.llvm.org/D118084



More information about the cfe-commits mailing list