[all-commits] [llvm/llvm-project] f1720a: [RISCV] Cleanup some places that assumed VLMaxSent...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Feb 2 12:23:44 PST 2022


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

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

  Log Message:
  -----------
  [RISCV] Cleanup some places that assumed VLMaxSentinel and -1 constant mean the same thing. NFCI

VLMaxSentintel happens to be represented as -1 TargetConstant. A user
provided -1 would be an ISD::Constant. We shouldn't assume that they
are the same thing. I'm still not entirely convinced that we should be
treating -1 from the user as VLMAX.

Also fix one place that failed to use XLenVT for the VLMaxSentinel,
using MVT::i64 in code that only executes on RV32.




More information about the All-commits mailing list