[all-commits] [llvm/llvm-project] 7b182d: [mlir] use getNumDimAndSymbolVars when iterate dim...

Xiang Li via All-commits all-commits at lists.llvm.org
Mon Jan 30 06:16:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b182d788e7ba94da1cc620050a65c276de86607
      https://github.com/llvm/llvm-project/commit/7b182d788e7ba94da1cc620050a65c276de86607
  Author: Xiang <python3kgae at outlook.com>
  Date:   2023-01-30 (Mon, 30 Jan 2023)

  Changed paths:
    M mlir/lib/Dialect/Affine/Analysis/Utils.cpp
    M mlir/test/Dialect/SCF/for-loop-canonicalization.mlir

  Log Message:
  -----------
  [mlir] use getNumDimAndSymbolVars when iterate dims/symbols of FlatAffineValueConstraints

Fixes #59443  https://github.com/llvm/llvm-project/issues/59443

getNumVars will add locals and cause out of bound access.

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




More information about the All-commits mailing list