HomePhabricator

[X86] Merge disp8 and cdisp8 handling into a single helper function to reduce…

Authored by craig.topper on Jul 28 2020, 9:53 AM.

Description

[X86] Merge disp8 and cdisp8 handling into a single helper function to reduce some code.

We currently handle EVEX and non-EVEX separately in two places. By sinking the EVEX
check into the existing helper for CDisp8 we can simplify these two places.

Differential Revision: https://reviews.llvm.org/D84730