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

Zixuan Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 01:45:56 PDT 2023


zixuan-wu added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/rvv/fold-scalar-load-crash.ll:11
+; RV32-NEXT:  .LBB0_1: # %for.body4
+; RV32-NEXT:    # =>This Inner Loop Header: Depth=1
+; RV32-NEXT:    j .LBB0_1
----------------
pcwang-thead wrote:
> Why is there no instructions here? All of them are optimized out?
it's interesting. It's removed by dead-mi-elimination pass. But this is truly a case reduced from big original source to reproduce the compiling assert in DAG selection stage :)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152222/new/

https://reviews.llvm.org/D152222



More information about the llvm-commits mailing list