[all-commits] [llvm/llvm-project] acef83: [VectorCombine] Fix crash in scalarizeVPIntrinsic ...

Michael Maitland via All-commits all-commits at lists.llvm.org
Sat Nov 11 16:54:28 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acef83c142619abf270145c91093c76c9d6d5ede
      https://github.com/llvm/llvm-project/commit/acef83c142619abf270145c91093c76c9d6d5ede
  Author: Michael Maitland <michaeltmaitland at gmail.com>
  Date:   2023-11-11 (Sat, 11 Nov 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VectorCombine.cpp
    A llvm/test/Transforms/VectorCombine/RISCV/vpintrin-scalarization-shufflevector-splat.ll

  Log Message:
  -----------
  [VectorCombine] Fix crash in scalarizeVPIntrinsic (#72039)

When getSplatOp returns nullptr, the intrinsic cannot be scalarized.
This patch includes a test case that fixes a crash from trying to
scalarize the VPIntrinsic when getSplatOp returns nullptr.

This fixes https://github.com/llvm/llvm-project/issues/72034.




More information about the All-commits mailing list