[libc-commits] [libc] [libc] Rework the RPC interface to accept runtime wave sizes (PR #80914)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu Feb 8 05:13:20 PST 2024


jhuber6 wrote:

> The intrinsic won't actually fold out in any useful place today (only happens extremely late in the backend). You're better of linking in a wavesize constant variable

I did some basic tests at various optimization levels and didn't find a case where this changed resource usage via `-Rpass-analysis=kernel-resource-usage`. Looking at https://godbolt.org/z/T468dT1PY it at least seems capable of optimizing through very shallow branches, and this is pretty much just a single constant read and multiplication.

https://github.com/llvm/llvm-project/pull/80914


More information about the libc-commits mailing list