[llvm] [X86][X86CompressEVEX] Do not compress when there is a compressed disp8 (PR #221923)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 02:44:51 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;
----------------
nishant-sachdeva-amd wrote:
NIT : returning an integer for a bool function.
https://github.com/llvm/llvm-project/pull/221923
More information about the llvm-commits
mailing list