[llvm] [AMDGPU][GlobalISel] Expand SGPR S1 exts into G_SELECT (PR #68858)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 12 04:10:06 PDT 2023


================
@@ -2609,7 +2637,7 @@ void AMDGPURegisterBankInfo::applyMappingImpl(
         SrcBank->getID() == AMDGPU::SGPRRegBankID;
 
       // TODO: Should s16 select be legal?
-      LLT SelType = UseSel64 ? LLT::scalar(64) : LLT::scalar(32);
+      LLT SelType = UseSel64 ? LLT::scalar(64) : S32;
----------------
jayfoad wrote:

```suggestion
      LLT SelType = UseSel64 ? S64 : S32;
```

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


More information about the llvm-commits mailing list