[all-commits] [llvm/llvm-project] 727017: [SVE] Replace TypeSize comparison operators in llv...

david-arm via All-commits all-commits at lists.llvm.org
Mon Oct 19 00:22:20 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 72701773a7cae1243b0ccf820177dfa55c3a0343
      https://github.com/llvm/llvm-project/commit/72701773a7cae1243b0ccf820177dfa55c3a0343
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-10-19 (Mon, 19 Oct 2020)

  Changed paths:
    M llvm/utils/TableGen/CodeGenDAGPatterns.cpp
    M llvm/utils/TableGen/IntrinsicEmitter.cpp

  Log Message:
  -----------
  [SVE] Replace TypeSize comparison operators in llvm/utils/TableGen

In CodeGenDAGPatterns.cpp we were relying upon TypeSize comparison
operators for ordering types, when we can actually just use the known
minimum size since the scalable property is already being taken into
account. Also, in TypeInfer::EnforceSameSize I fixed some implicit
TypeSize->uint64_t casts by changing the code to test the equality
of TypeSize objects instead.

In other places I have replaced calls to getSizeInBits() with
getFixedSizeInBits() because we are only ever expecting integer values.

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




More information about the All-commits mailing list