[all-commits] [llvm/llvm-project] 947be4: [SVE] Do not store a bool for Scalable in VectorType

Christopher Tetreault via All-commits all-commits at lists.llvm.org
Fri Apr 24 10:36:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 947be4a024b9701fcfd36656e01ba59bd7e2f486
      https://github.com/llvm/llvm-project/commit/947be4a024b9701fcfd36656e01ba59bd7e2f486
  Author: Christopher Tetreault <ctetreau at quicinc.com>
  Date:   2020-04-24 (Fri, 24 Apr 2020)

  Changed paths:
    M llvm/include/llvm/IR/DerivedTypes.h
    M llvm/lib/IR/Type.cpp

  Log Message:
  -----------
  [SVE] Do not store a bool for Scalable in VectorType

Summary:
- Whether or not a vector is scalable is a function of its type. Since
all instances of ScalableVectorType will have true for this value and
all instances of FixedVectorType will have false for this value, there
is no need to store it as a class member.

Reviewers: efriedma, fpetrogalli, kmclaughlin

Reviewed By: fpetrogalli

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list