[all-commits] [llvm/llvm-project] 323fd1: [mlir][nfc] Add a func to compute numElements of a...

Alexander Belyaev via All-commits all-commits at lists.llvm.org
Tue Oct 13 12:41:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 323fd11df7718e68c37f9220a8e1056bb56778cf
      https://github.com/llvm/llvm-project/commit/323fd11df7718e68c37f9220a8e1056bb56778cf
  Author: Alexander Belyaev <pifon at google.com>
  Date:   2020-10-13 (Tue, 13 Oct 2020)

  Changed paths:
    M mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h
    M mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp

  Log Message:
  -----------
  [mlir][nfc] Add a func to compute numElements of a shape in Std -> LLVM.

For some reason the variable `cumulativeSizeInBytes` in
`getCumulativeSizeInBytes` was actually storing number of elements. I decided
to fix it and refactor the function a bit.

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




More information about the All-commits mailing list