[all-commits] [llvm/llvm-project] 6e1ac6: [mlir] Don't iterate mutable user list

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Apr 28 09:00:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e1ac68a0c73546c989e2440943e4786d328f718
      https://github.com/llvm/llvm-project/commit/6e1ac68a0c73546c989e2440943e4786d328f718
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2022-04-28 (Thu, 28 Apr 2022)

  Changed paths:
    M mlir/lib/Dialect/GPU/Transforms/AsyncRegionRewriter.cpp

  Log Message:
  -----------
  [mlir] Don't iterate mutable user list

executeOp.operandsMutable().append(asyncTokens) in
addAsyncDependencyAfter can resize and invalidate iterators.

Fixes reports like https://reviews.llvm.org/P8286

Reviewed By: herhut

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




More information about the All-commits mailing list