[llvm] [X86] Use X86FixupInstTunings to select between (V)MOVSS/D and (V)BLENDPS/D (PR #143312)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 9 00:29:13 PDT 2025


================
@@ -221,8 +221,41 @@ bool X86FixupInstTuningPass::processInstruction(
   auto ProcessUNPCKPS = [&](unsigned NewOpc) -> bool {
     return ProcessUNPCKToIntDomain(NewOpc);
   };
+  
+  auto ProcessBLENDToMOV = [&](unsigned MovOpc) -> bool {
+    if (!MI.getOperand(NumOperands - 1).isImm() ||
----------------
RKSimon wrote:

You shouldn't need this isImm() check - if we've gotten the operand number wrong then something is very broken, and getImm should assert.

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


More information about the llvm-commits mailing list