[llvm] [X86] Rewrite MOVUPD to MOVUPS in X86FixupInstTuning (PR #217676)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 22 10:14:48 PDT 2026


================
@@ -255,6 +255,18 @@ bool X86FixupInstTuningImpl::processInstruction(
     return ProcessUNPCKToIntDomain(NewOpc);
   };
 
+  // MOVUPS takes 1 less byte of code size. Only replace when
+  // there is no move domain-delay penalty on the target.
+  auto ProcessMOVUPDToMOVUPS = [&](unsigned NewOpc) -> bool {
+    if (!ST->hasNoDomainDelayMov() ||
+        !NewOpcPreferable(NewOpc, /*ReplaceInTie*/ true))
----------------
RKSimon wrote:

might be always worth it for minsize (probably not optsize)

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


More information about the llvm-commits mailing list