[all-commits] [llvm/llvm-project] 1fa858: [RISCV][GISel] Make G_CONSTANT of pointers legal.

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Aug 14 10:11:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1fa858d987ec0ffcc25005012d35eed25fa4c7d1
      https://github.com/llvm/llvm-project/commit/1fa858d987ec0ffcc25005012d35eed25fa4c7d1
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-08-14 (Mon, 14 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
    M llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-const.mir
    M llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-const.mir

  Log Message:
  -----------
  [RISCV][GISel] Make G_CONSTANT of pointers legal.

This is needed to support things like null pointers.

Reviewed By: reames

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




More information about the All-commits mailing list