[llvm] AMDGPU: Use mi_match for more manual selector patterns (PR #216726)

Krzysztof Drewniak via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 17 10:24:12 PDT 2026


================
@@ -2942,18 +2942,16 @@ static bool isExtractHiElt(MachineRegisterInfo &MRI, Register In,
     }
   }
 
-  MachineInstr *Shuffle = MRI.getVRegDef(Trunc);
-  if (Shuffle->getOpcode() != AMDGPU::G_SHUFFLE_VECTOR)
+  ArrayRef<int> Mask;
----------------
krzysz00 wrote:

Right, I'm just recalling there being an active attempt to make them legal / change `shufflevector` to allow that sort of thing, and my memory said that that landed.

Now that I'm un-confused, I'll go approve this

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


More information about the llvm-commits mailing list