[all-commits] [llvm/llvm-project] cbf1d5: [SelectionDAG] Add space-optimized forms of OPC_Em...

Wang Pengcheng via All-commits all-commits at lists.llvm.org
Tue Dec 12 01:25:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cbf1d58820877b06a379005c155bf354cece57ff
      https://github.com/llvm/llvm-project/commit/cbf1d58820877b06a379005c155bf354cece57ff
  Author: Wang Pengcheng <wangpengcheng.pp at bytedance.com>
  Date:   2023-12-12 (Tue, 12 Dec 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAGISel.h
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
    M llvm/utils/TableGen/DAGISelMatcherEmitter.cpp

  Log Message:
  -----------
  [SelectionDAG] Add space-optimized forms of OPC_EmitCopyToReg (#73293)

These new opcodes implicitly indicate the RecNo.

The old `OPC_EmitCopyToReg2` is renamed to `OPC_EmitCopyToRegTwoByte`.

Overall this reduces the llc binary size with all in-tree targets by
about 33K (most are from RISCV target).




More information about the All-commits mailing list