[all-commits] [llvm/llvm-project] b861dd: [RISCV] Move the creation of VLMaxSentinel to isel...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Feb 10 09:28:58 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b861ddf365ce2148b86a3f8f09e47c0d5cbb0c89
      https://github.com/llvm/llvm-project/commit/b861ddf365ce2148b86a3f8f09e47c0d5cbb0c89
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-02-10 (Thu, 10 Feb 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td

  Log Message:
  -----------
  [RISCV] Move the creation of VLMaxSentinel to isel. Use X0 during lowering.

The VLMaxSentinel is represented as TargetConstant, but that's included
in isa<ConstantSDNode>. To keep constant VLs and VLMax separate as long
as possible, use the X0 register during lowering and only convert to
VLMaxSentinel during isel.

Reviewed By: frasercrmck

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




More information about the All-commits mailing list