[all-commits] [llvm/llvm-project] 4a7364: [mlir][Parser] Use APFloat instead of FloatAttr wh...

River Riddle via All-commits all-commits at lists.llvm.org
Wed Feb 19 10:35:21 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a7364f1c2ef0c45d7e603799fe0b7662d4c4078
      https://github.com/llvm/llvm-project/commit/4a7364f1c2ef0c45d7e603799fe0b7662d4c4078
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2020-02-19 (Wed, 19 Feb 2020)

  Changed paths:
    M mlir/lib/Parser/Parser.cpp

  Log Message:
  -----------
  [mlir][Parser] Use APFloat instead of FloatAttr when parsing DenseElementsAttrs.

Summary: DenseElementsAttr stores float values as raw bits internally, so creating attributes just to have them unwrapped is extremely inefficient.

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




More information about the All-commits mailing list