[all-commits] [llvm/llvm-project] 06eb05: [MLIR][Presburger] fix vector update in coalesce

Michel Weber via All-commits all-commits at lists.llvm.org
Thu Mar 10 02:15:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06eb0577380c4ba027eae5f48553b2063b3feaff
      https://github.com/llvm/llvm-project/commit/06eb0577380c4ba027eae5f48553b2063b3feaff
  Author: Michel Weber <michel.weber at inf.ethz.ch>
  Date:   2022-03-10 (Thu, 10 Mar 2022)

  Changed paths:
    M mlir/lib/Analysis/Presburger/PresburgerSet.cpp
    M mlir/unittests/Analysis/Presburger/PresburgerSetTest.cpp

  Log Message:
  -----------
  [MLIR][Presburger] fix vector update in coalesce

When `addCoalescedPolyhedron` was called with `j == n - 1`,
the `polyhedrons`-vector was not properly updated (the
`IntegerPolyhedron` at position `n - 2` was "lost"). This patch adds
special handling to that case and a regression testcase.

Reviewed By: Groverkss

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




More information about the All-commits mailing list