[PATCH] D25381: [AMDGPU] Add amdgpu-unify-metadata pass

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 18:24:42 PDT 2016


rampitec added a comment.

In https://reviews.llvm.org/D25381#569897, @tstellarAMD wrote:

> For the OpenCL version metadata, is there anything in the backend that uses it?


One thing is that OpenCL 2.0 supports non-uniform workgroup sizes, and it is non-uniform by default. A query to get_local_size and similar become surprisingly long expansion and you cannot really constant fold a known wg size any longer. Under OCL 1.2 you can optimize it freely.


Repository:
  rL LLVM

https://reviews.llvm.org/D25381





More information about the llvm-commits mailing list