[all-commits] [llvm/llvm-project] 1df118: [X86] Use some preprocessor macros to reduce the v...

topperc via All-commits all-commits at lists.llvm.org
Tue Jun 30 14:38:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1df1186ab12d87f42f3e8c5bd7703520d5bf1f17
      https://github.com/llvm/llvm-project/commit/1df1186ab12d87f42f3e8c5bd7703520d5bf1f17
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelDAGToDAG.cpp

  Log Message:
  -----------
  [X86] Use some preprocessor macros to reduce the very similar repeated code in getVPTESTMOpc. NFCI

This function picks X86 opcode name based on type, masking,
and whether not a load or broadcast has been folded using multiple
switch statements. The contents of the switches mostly just vary in
a few characters in the instruction name. So use some macros to
build the instruction names to reduce the repetiveness.




More information about the All-commits mailing list