[all-commits] [llvm/llvm-project] 45a29b: [RISCV][GlobalISel] Select G_PTR_ADD (#67605)

Nitin John Raj via All-commits all-commits at lists.llvm.org
Tue Oct 10 11:23:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45a29bd5ed79cd527161ff6637539f251f9ecfa6
      https://github.com/llvm/llvm-project/commit/45a29bd5ed79cd527161ff6637539f251f9ecfa6
  Author: Nitin John Raj <105745460+nitinjohnraj at users.noreply.github.com>
  Date:   2023-10-10 (Tue, 10 Oct 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
    A llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/ptradd-rv32.mir
    A llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/ptradd-rv64.mir

  Log Message:
  -----------
  [RISCV][GlobalISel] Select G_PTR_ADD (#67605)

We lower G_PTR_ADD to G_ADD before selection. We choose to do this here
and not post-legalization because G_PTR_ADD can still be combined with
other instructions during selection.




More information about the All-commits mailing list