[all-commits] [llvm/llvm-project] 237d5c: [mlir] Fix vector::InsertElementOp::fold on invali...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Tue Oct 31 21:17:44 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 237d5c646991b57aacd60b23b3dab509eca9e1aa
      https://github.com/llvm/llvm-project/commit/237d5c646991b57aacd60b23b3dab509eca9e1aa
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2023-10-31 (Tue, 31 Oct 2023)

  Changed paths:
    M mlir/lib/Dialect/Vector/IR/VectorOps.cpp
    M mlir/test/Dialect/Vector/canonicalize.mlir

  Log Message:
  -----------
  [mlir] Fix vector::InsertElementOp::fold on invalid input

The IR is valid, but UB: there is an out-of-bound index for the position
to insert inside the vector. We should just ignore this in the folder.

Fixes #70884




More information about the All-commits mailing list