[llvm] [AMDGPU] promote i1 arg type for admgpu_cs (PR #82971)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 01:17:03 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Nick Anderson (nickleus27)
<details>
<summary>Changes</summary>
fixes #<!-- -->68087
Not sure where to put regression tests for this pr? Also, should i1 args not in reg also be promoted?
---
Full diff: https://github.com/llvm/llvm-project/pull/82971.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/AMDGPUCallingConv.td (+1)
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUCallingConv.td b/llvm/lib/Target/AMDGPU/AMDGPUCallingConv.td
index c5207228dc913f..a988140df3e89b 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUCallingConv.td
+++ b/llvm/lib/Target/AMDGPU/AMDGPUCallingConv.td
@@ -66,6 +66,7 @@ def RetCC_SI_Gfx : CallingConv<[
def CC_SI_SHADER : CallingConv<[
+ CCIfType<[i1], CCPromoteToType<i16>>,
CCIfInReg<CCIfType<[f32, i32, f16, i16, v2i16, v2f16, bf16, v2bf16] , CCAssignToReg<[
SGPR0, SGPR1, SGPR2, SGPR3, SGPR4, SGPR5, SGPR6, SGPR7,
SGPR8, SGPR9, SGPR10, SGPR11, SGPR12, SGPR13, SGPR14, SGPR15,
``````````
</details>
https://github.com/llvm/llvm-project/pull/82971
More information about the llvm-commits
mailing list