https://github.com/krzysz00 commented: High-level question - should this be querying max-flat-workgroup-size and `!reqd_work_group_size` to get more precise bounds, or is that a followup PR? https://github.com/llvm/llvm-project/pull/185420