[all-commits] [llvm/llvm-project] c07062: [RISCV][GlobalISel] Select G_CONSTANT, G_ANYEXT, COPY

Nitin John Raj via All-commits all-commits at lists.llvm.org
Wed Aug 23 15:34:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c07062a2e9bf9aa1211b958f6bb4c5746139c180
      https://github.com/llvm/llvm-project/commit/c07062a2e9bf9aa1211b958f6bb4c5746139c180
  Author: Nitin John Raj <nitin.raj at sifive.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
    A llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant32.mir
    A llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant64.mir
    A llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/copy32.mir
    A llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/copy64.mir

  Log Message:
  -----------
  [RISCV][GlobalISel] Select G_CONSTANT, G_ANYEXT, COPY

We select G_CONSTANT generic opcodes by materializing the constant in a
register. G_ANYEXT is replaced with COPY.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D158504




More information about the All-commits mailing list