[all-commits] [llvm/llvm-project] 2e6c01: [SelectionDAG] Add instantiated OPC_EmitInteger an...

Wang Pengcheng via All-commits all-commits at lists.llvm.org
Sun Nov 26 19:08:50 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e6c01be0db5d137c48953adde386eaef0982775
      https://github.com/llvm/llvm-project/commit/2e6c01be0db5d137c48953adde386eaef0982775
  Author: Wang Pengcheng <wangpengcheng.pp at bytedance.com>
  Date:   2023-11-27 (Mon, 27 Nov 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAGISel.h
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
    M llvm/test/TableGen/DAGDefaultOps.td
    M llvm/test/TableGen/dag-isel-regclass-emit-enum.td
    M llvm/test/TableGen/dag-isel-subregs.td
    M llvm/utils/TableGen/DAGISelMatcherEmitter.cpp

  Log Message:
  -----------
  [SelectionDAG] Add instantiated OPC_EmitInteger and OPC_EmitStringInteger (#73241)

These two opcodes are used to be followed by a MVT operand, which is
always one of i8/i16/i32/i64.

We add instantiated `OPC_EmitInteger` and `OPC_EmitStringInteger` with
i8/i16/i32/i64 so that we can reduce one byte.

We reserve `OPC_EmitInteger` and `OPC_EmitStringInteger` in case that
we may need them someday, though I haven't found one usage after this
change.

Overall this reduces the llc binary size with all in-tree targets by
about 200K.




More information about the All-commits mailing list