[all-commits] [llvm/llvm-project] 8e204f: [SVE] Generalize size checks in Verifier to use ge...

Christopher Tetreault via All-commits all-commits at lists.llvm.org
Tue Jun 16 16:04:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e204f807b9df3c0a6fd14fcb038a46591b23f0b
      https://github.com/llvm/llvm-project/commit/8e204f807b9df3c0a6fd14fcb038a46591b23f0b
  Author: Christopher Tetreault <ctetreau at quicinc.com>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M llvm/lib/IR/Verifier.cpp

  Log Message:
  -----------
  [SVE] Generalize size checks in Verifier to use getElementCount

Summary:
Attempts to call getNumElements on scalable vectors identified by test
LLVM.Other::scalable-vectors-core-ir.ll. Since these checks are all
attempting to find if two vectors are the same size, calling
getElementCount will only increase safety.

Reviewers: efriedma, aprantl, reames, kmclaughlin, sdesmalen

Reviewed By: efriedma

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

Tags: #llvm

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




More information about the All-commits mailing list