[all-commits] [llvm/llvm-project] 1cc979: [RISCV] Fix a crash in InsertVSETVLI where we hadn...

Philip Reames via All-commits all-commits at lists.llvm.org
Thu Jun 23 10:25:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1cc97922811a27c2cd8fd88a1367f29f3d64487a
      https://github.com/llvm/llvm-project/commit/1cc97922811a27c2cd8fd88a1367f29f3d64487a
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-06-23 (Thu, 23 Jun 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
    M llvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.ll

  Log Message:
  -----------
  [RISCV] Fix a crash in InsertVSETVLI where we hadn't properly guarded for a SEWLMULRatioOnly abstract state

A forward abstract state can be in the special SEWLMULRatioOnly state which means we're not allowed to inspect its fields.  The scalar to vector move case was mising a guard, and we'd crash on an assert.  Test cases included.




More information about the All-commits mailing list