[X86] Merge disp8 and cdisp8 handling into a single helper function to reduce some...
authorCraig Topper <craig.topper@intel.com>
Tue, 28 Jul 2020 16:53:42 +0000 (09:53 -0700)
committerCraig Topper <craig.topper@intel.com>
Tue, 28 Jul 2020 17:46:01 +0000 (10:46 -0700)
commit6c3dc6e1d57d15568ebcb3b725fa65a7ba4462de
treed8b450a2e937ff1d64d88dec78eeccc1ba0ab467
parent04a21318b55756d50836f6e40f2d209f18cce417
[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
llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp