[llvm] [X86][X86CompressEVEX] Do not compress when there is a compressed disp8 (PR #221923)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 02:47:12 PDT 2026


================
@@ -540,6 +575,10 @@ static bool CompressEVEXImpl(MachineInstr &MI, MachineBasicBlock &MBB,
   if (TSFlags & (X86II::EVEX_K | X86II::EVEX_L2))
     return false;
 
+  // Keep the EVEX encoding when there's 1-byte compressed disp8*N.
+  if (hasShorterEVEXViaCDisp8(MI))
+    return 0;
----------------
phoebewang wrote:

Changed, thanks!

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


More information about the llvm-commits mailing list