[all-commits] [llvm/llvm-project] 47a9cd: [AMDGPU] Remove constexpr from getNumUserSGPRForFi...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Sep 13 04:20:32 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47a9cd03435342f179a0df9daa1b918d33b03354
      https://github.com/llvm/llvm-project/commit/47a9cd03435342f179a0df9daa1b918d33b03354
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-09-13 (Wed, 13 Sep 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
    M llvm/lib/Target/AMDGPU/GCNSubtarget.h

  Log Message:
  -----------
  [AMDGPU] Remove constexpr from getNumUserSGPRForField/getMaxNumPreloadedSGPRs to appease older gcc builds

Older versions of gcc wouldn't accept the constexpr getNumUserSGPRForField (introduced in D159439 / 343be5132e2831d85) as it couldn't treat the llvm_unreachable call as constexpr




More information about the All-commits mailing list