[all-commits] [llvm/llvm-project] 0b3f6f: [RISCV] Disable hasAllNBitUsers for vector types.

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Oct 22 22:04:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b3f6ff3c4ef340d08209665acfe0bbb3392596b
      https://github.com/llvm/llvm-project/commit/0b3f6ff3c4ef340d08209665acfe0bbb3392596b
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-10-22 (Sun, 22 Oct 2023)

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

  Log Message:
  -----------
  [RISCV] Disable hasAllNBitUsers for vector types.

RISCVGenDAGISel.inc can call this before it checks the node type.
Ensure the type is scalar before wasting time to do the more
computationally expensive checks.

This also avoids an assertion if we hit a VMV_X_S instruction
which doesn't have a VL operand which vectorPseudoHasAllNBitUsers
expects.




More information about the All-commits mailing list