[all-commits] [llvm/llvm-project] 69152a: [X86] Merge the two 'Emit the normal disp32 encodi...

topperc via All-commits all-commits at lists.llvm.org
Tue Jul 28 12:12:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 69152a11cf181d9c1859947f0f2c2f1554a891f2
      https://github.com/llvm/llvm-project/commit/69152a11cf181d9c1859947f0f2c2f1554a891f2
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M llvm/lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp

  Log Message:
  -----------
  [X86] Merge the two 'Emit the normal disp32 encoding' cases in SIB byte handling in emitMemModRMByte. NFCI

By repeating the Disp.isImm() check in a couple spots we can
make the normal case for immediate and for expression the same.
And then always rely on the ForceDisp32 flag to remove a later
non-zero immediate check.

This should make {disp32} pseudo prefix handling
slightly easier as we need the normal disp32 handler to handle a
immediate of 0.




More information about the All-commits mailing list