[all-commits] [llvm/llvm-project] 0c5e4a: [mlir] Prevent segfault in Tensor canonicalization

Tres via All-commits all-commits at lists.llvm.org
Fri Jan 29 01:58:25 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c5e4a25ee232afd0ab21294dfe9ce290957aab6
      https://github.com/llvm/llvm-project/commit/0c5e4a25ee232afd0ab21294dfe9ce290957aab6
  Author: Tres Popp <tpopp at google.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/test/Dialect/Tensor/canonicalize.mlir

  Log Message:
  -----------
  [mlir] Prevent segfault in Tensor canonicalization

This segfault could occur from out of bounds accesses when simplifying
tensor.extract with a constant index and a tensor created by
tensor.from_elements.

This IR is not necesarilly invalid as it might conditionally be
never executed.

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




More information about the All-commits mailing list