HomePhabricator

[X86] Enable the EVEX->VEX compression pass at -O0.

Authored by craig.topper on Jun 13 2020, 12:28 PM.

Description

[X86] Enable the EVEX->VEX compression pass at -O0.

A lot of what EVEX->VEX does is equivalent to what the
prioritization in the assembly parser does. When an AVX mnemonic
is used without any EVEX features or XMM16-31, the parser will
pick the VEX encoding.

Since codegen doesn't go through the parser, we should also
use VEX instructions when we can so that the code coming out of
integrated assembler matches what you'd get from outputing an
assembly listing and parsing it.

The pass early outs if AVX isn't enabled and uses TSFlags to
check for EVEX instructions before doing the more costly table
lookups. Hopefully that's enough to keep this from impacting
-O0 compile times.

Details

Committed
craig.topperJun 13 2020, 12:29 PM
Parents
rG8885a7640b82: [X86] Separate imm from relocImm handling.
Branches
Unknown
Tags
Unknown