[all-commits] [llvm/llvm-project] ccf242: [Matrix] Update shape propagation to iterate until...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Jan 9 02:53:53 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ccf24225e3f2356ebf0e73bb114a831bf1721222
      https://github.com/llvm/llvm-project/commit/ccf24225e3f2356ebf0e73bb114a831bf1721222
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-01-09 (Thu, 09 Jan 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
    A llvm/test/Transforms/LowerMatrixIntrinsics/propagate-multiple-iterations.ll

  Log Message:
  -----------
  [Matrix] Update shape propagation to iterate until done.

This patch updates the shape propagation to iterate until no new shape
information is discovered.

As initial seed for the forward propagation, we use the matrix intrinsic
instructions. Both propagateShapeForward and propagateShapeBackward
return new work lists, with the instructions to be used for the next
iteration. When propagating forward, we record all instructions we added
new shape information for. When propagating backward, we record all
users of instructions we added new shape information for.

Reviewers: anemet, Gerolf, reames, hfinkel, andrew.w.kaylor

Reviewed By: anemet

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




More information about the All-commits mailing list