[llvm] [AMDGPU] Do not combine V_ASHRREV_I16* to make sdwa (PR #198491)

Frederik Harwath via llvm-commits llvm-commits at lists.llvm.org
Wed May 27 23:14:06 PDT 2026


================
@@ -708,19 +708,17 @@ SIPeepholeSDWA::matchSDWAOperand(MachineInstr &MI) {
   }
 
   case AMDGPU::V_LSHRREV_B16_e32:
-  case AMDGPU::V_ASHRREV_I16_e32:
   case AMDGPU::V_LSHLREV_B16_e32:
   case AMDGPU::V_LSHRREV_B16_e64:
   case AMDGPU::V_LSHRREV_B16_opsel_e64:
-  case AMDGPU::V_ASHRREV_I16_e64:
----------------
frederik-h wrote:

Sure. If we add it, we need to undo your change to the way the Sext value is being set, but it should be easy enough to do this later.

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


More information about the llvm-commits mailing list