[all-commits] [llvm/llvm-project] 0aebd1: [RISCV] Fix crash when costing scalable gather/sca...

Philip Reames via All-commits all-commits at lists.llvm.org
Mon Jun 20 12:50:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0aebd1d8758603e4e5af39d50e6628f53b583609
      https://github.com/llvm/llvm-project/commit/0aebd1d8758603e4e5af39d50e6628f53b583609
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-06-20 (Mon, 20 Jun 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/RISCV/scalable-gather.ll
    M llvm/test/Analysis/CostModel/RISCV/scalable-scatter.ll

  Log Message:
  -----------
  [RISCV] Fix crash when costing scalable gather/scatter of pointer

This was a bug introduced in d764aa. A pointer type is not a primitive type, and thus we were ending up dividing by zero when computing VLMax.

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




More information about the All-commits mailing list