[all-commits] [llvm/llvm-project] 2ccb2d: [RISCV] Don't fold RISCVISD::VMV_V_X_VL series nod...

Zi Xuan Wu (Zeson) via All-commits all-commits at lists.llvm.org
Tue Jul 11 00:58:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ccb2dbc8d0432e6daf97dfe33a4f3fa26c580a1
      https://github.com/llvm/llvm-project/commit/2ccb2dbc8d0432e6daf97dfe33a4f3fa26c580a1
  Author: Zi Xuan Wu (Zeson) <zixuan.wu at linux.alibaba.com>
  Date:   2023-07-11 (Tue, 11 Jul 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
    A llvm/test/CodeGen/RISCV/rvv/fold-scalar-load-crash.ll

  Log Message:
  -----------
  [RISCV] Don't fold RISCVISD::VMV_V_X_VL series node and scalar load to vector load when scalar load is update load

We try to fold RISCVISD::VMV_V_X_VL series node + scalar load -> vector load.
But if scalar load is indexed load (load update form), it's not profitable to fold because load update node can't be removed after fold.

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




More information about the All-commits mailing list