[all-commits] [llvm/llvm-project] b339bb: [Matrix] Use ArrayType for allocas instead of Vect...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Jan 28 02:48:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b339bbdb197052ec4a346d95e74cdffa17469904
      https://github.com/llvm/llvm-project/commit/b339bbdb197052ec4a346d95e74cdffa17469904
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-01-28 (Fri, 28 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
    M llvm/test/Transforms/LowerMatrixIntrinsics/multiply-fused-dominance.ll
    M llvm/test/Transforms/LowerMatrixIntrinsics/multiply-fused-loops.ll
    M llvm/test/Transforms/LowerMatrixIntrinsics/multiply-fused-multiple-blocks.ll
    M llvm/test/Transforms/LowerMatrixIntrinsics/multiply-fused.ll

  Log Message:
  -----------
  [Matrix] Use ArrayType for allocas instead of VectorType.

When creating an alloca to copy a matrix due to memory conflicts, those
allocas used to use VectorTypes, which forced them to have huge
alignments for large vectors.

This patch updates LowerMatrixIntrinsics to use a corresponding array
type, like Clang already does, to get more manageable alignments.

Reviewed By: anemet, thegameg

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




More information about the All-commits mailing list