[llvm-branch-commits] [llvm] [AMDGPU][RegBankInfo] Promote scalar i16 and/or/xor to i32 (PR #131306)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Mar 14 06:39:51 PDT 2025


================
@@ -2432,6 +2433,29 @@ void AMDGPURegisterBankInfo::applyMappingImpl(
       return;
     }
 
+    // 16-bit operations are VALU only, but can be promoted to 32-bit SALU.
+    // Packed 16-bit operations need to be scalarized and promoted.
----------------
arsenm wrote:

I'd still expect to form not patterns canonically. I don't know why the iSA provides it, but other patterns to make use of not 

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


More information about the llvm-branch-commits mailing list